X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fsmssettings.php;h=d151ff45d6a7b61ed8e388df9ea442eb9d9d04eb;hb=5eba1030ae39038b7b6b0aad5de1043fae43e48d;hp=f9a79e1664febdd453f7f9625fb2d50266dc45b9;hpb=8eb66467165e107d0c80c64f6c429fed1d1101d5;p=quix0rs-gnu-social.git diff --git a/actions/smssettings.php b/actions/smssettings.php index f9a79e1664..d151ff45d6 100644 --- a/actions/smssettings.php +++ b/actions/smssettings.php @@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR.'/lib/connectsettingsaction.php'; - /** * Settings for SMS * @@ -44,7 +42,8 @@ require_once INSTALLDIR.'/lib/connectsettingsaction.php'; * * @see SettingsAction */ -class SmssettingsAction extends ConnectSettingsAction + +class SmssettingsAction extends SettingsAction { /** * Title of the page @@ -150,7 +149,7 @@ class SmssettingsAction extends ConnectSettingsAction ($this->arg('sms')) ? $this->arg('sms') : null, // TRANS: SMS phone number input field instructions in SMS settings form. _('Phone number, no punctuation or spaces, '. - 'with area code')); + 'with area code.')); $this->elementEnd('li'); $this->elementEnd('ul'); $this->carrierSelect(); @@ -247,6 +246,7 @@ class SmssettingsAction extends ConnectSettingsAction $token = $this->trimmed('token'); if (!$token || $token != common_session_token()) { + // TRANS: Client error displayed when the session token does not match or is not given. $this->showForm(_('There was a problem with your session token. '. 'Try again, please.')); return; @@ -410,7 +410,7 @@ class SmssettingsAction extends ConnectSettingsAction if (!$result) { common_log_db_error($confirm, 'DELETE', __FILE__); // TRANS: Server error thrown on database error canceling SMS phone number confirmation. - $this->serverError(_('Could not delete email confirmation.')); + $this->serverError(_('Could not delete SMS confirmation.')); return; } @@ -562,9 +562,11 @@ class SmssettingsAction extends ConnectSettingsAction if (!$user->updateKeys($orig)) { common_log_db_error($user, 'UPDATE', __FILE__); - $this->serverError(_("Could not update user record.")); + // TRANS: Server error displayed when the user could not be updated in SMS settings. + $this->serverError(_('Could not update user record.')); } + // TRANS: Confirmation text after updating SMS settings. $this->showForm(_('Incoming email address removed.'), true); } @@ -585,9 +587,11 @@ class SmssettingsAction extends ConnectSettingsAction if (!$user->updateKeys($orig)) { common_log_db_error($user, 'UPDATE', __FILE__); - $this->serverError(_("Could not update user record.")); + // TRANS: Server error displayed when the user could not be updated in SMS settings. + $this->serverError(_('Could not update user record.')); } + // TRANS: Confirmation text after updating SMS settings. $this->showForm(_('New incoming email address added.'), true); } }