X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsmssettings.php;h=844fb6160b3e94b560d6f8f3841a20bd41d390da;hb=ee858bc8809f846860e4372444b172d8737abc75;hp=f0c84ae690a2a5e52bb907e6a613732b53ff6e4f;hpb=f538ab414baae8786e88f040f71eedab9d37736e;p=quix0rs-gnu-social.git diff --git a/actions/smssettings.php b/actions/smssettings.php index f0c84ae690..844fb6160b 100644 --- a/actions/smssettings.php +++ b/actions/smssettings.php @@ -56,8 +56,8 @@ class SmssettingsAction extends EmailsettingsAction { common_element('span', 'address unconfirmed', $confirm->address . ' (' . $carrier->name . ')'); common_element('span', 'input_instructions', _('Awaiting confirmation on this phone number.')); - common_hidden('sms', $user->sms); - common_hidden('carrier', $user->carrier); + common_hidden('sms', $confirm->address); + common_hidden('carrier', $confirm->address_extra); common_element_end('p'); common_submit('cancel', _('Cancel')); common_input('code', _('Confirmation code'), NULL, @@ -138,7 +138,7 @@ class SmssettingsAction extends EmailsettingsAction { function save_preferences() { - $smsnotify = $this->boolean('emailpost'); + $smsnotify = $this->boolean('smsnotify'); $user = common_current_user(); @@ -229,8 +229,8 @@ class SmssettingsAction extends EmailsettingsAction { $this->show_form(_('No pending confirmation to cancel.')); return; } - if ($confirm->address != $sms || $confirm->address_extra != $carrier) { - $this->show_form(_('That is the wrong IM address.')); + if ($confirm->address != $sms) { + $this->show_form(_('That is the wrong confirmation number.')); return; }