updated Env::plugin_name to constant for text domain

This commit is contained in:
Jonathan Labreuille
2016-09-27 13:22:51 +02:00
parent ba6198f956
commit 42202f676a
58 changed files with 370 additions and 369 deletions

View File

@ -21,7 +21,7 @@ class CustomFields extends APIEndpoint {
$custom_field = CustomField::findOne($id);
if($custom_field === false) {
return $this->errorResponse(array(
APIError::NOT_FOUND => __('This custom field does not exist.', Env::$plugin_name)
APIError::NOT_FOUND => __('This custom field does not exist.', MAILPOET)
));
} else {
$custom_field->delete();
@ -48,7 +48,7 @@ class CustomFields extends APIEndpoint {
$custom_field = CustomField::findOne($id);
if($custom_field === false) {
return $this->errorResponse(array(
APIError::NOT_FOUND => __('This custom field does not exist.', Env::$plugin_name)
APIError::NOT_FOUND => __('This custom field does not exist.', MAILPOET)
));
} else {
return $this->successResponse($custom_field->asArray());