converted text domain to string instead of constant
This commit is contained in:
@ -30,7 +30,7 @@ class API {
|
||||
if($this->checkToken() === false) {
|
||||
$error_response = new ErrorResponse(
|
||||
array(
|
||||
Error::UNAUTHORIZED => __('You need to specify a valid API token.', MAILPOET)
|
||||
Error::UNAUTHORIZED => __('You need to specify a valid API token.', 'mailpoet')
|
||||
),
|
||||
array(),
|
||||
Response::STATUS_UNAUTHORIZED
|
||||
@ -41,7 +41,7 @@ class API {
|
||||
if($this->checkPermissions() === false) {
|
||||
$error_response = new ErrorResponse(
|
||||
array(
|
||||
Error::FORBIDDEN => __('You do not have the required permissions.', MAILPOET)
|
||||
Error::FORBIDDEN => __('You do not have the required permissions.', 'mailpoet')
|
||||
),
|
||||
array(),
|
||||
Response::STATUS_FORBIDDEN
|
||||
@ -56,7 +56,7 @@ class API {
|
||||
if($this->checkToken() === false) {
|
||||
$error_response = new ErrorResponse(
|
||||
array(
|
||||
Error::UNAUTHORIZED => __('You need to specify a valid API token.', MAILPOET)
|
||||
Error::UNAUTHORIZED => __('You need to specify a valid API token.', 'mailpoet')
|
||||
),
|
||||
array(),
|
||||
Response::STATUS_UNAUTHORIZED
|
||||
|
Reference in New Issue
Block a user