Rename license key constants and vars, optimize error generation [PREMIUM-4]

This commit is contained in:
Alexey Stoletniy
2017-05-05 18:04:52 +03:00
parent d8e1c76155
commit 787e022382
6 changed files with 38 additions and 38 deletions

View File

@ -108,7 +108,7 @@ class Services extends APIEndpoint {
case Bridge::PREMIUM_KEY_INVALID:
$error = __('Your license key is invalid.', 'mailpoet');
break;
case Bridge::PREMIUM_KEY_USED:
case Bridge::PREMIUM_KEY_ALREADY_USED:
$error = __('Your license key is already used on another site.', 'mailpoet');
break;
default: