]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Ticket #2912: move 'I want to post notices by email" checkbox up from the email ...
authorBrion Vibber <brion@pobox.com>
Wed, 1 Dec 2010 21:04:18 +0000 (13:04 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 1 Dec 2010 21:04:18 +0000 (13:04 -0800)
actions/emailsettings.php

index 5a816e5c0ab17fd4e3107baa7a3b77c0bd136fc4..02b6892e0f151c23dbc4c0c270cd37b1be1a1ac7 100644 (file)
@@ -149,6 +149,16 @@ class EmailsettingsAction extends AccountSettingsAction
             $this->elementStart('fieldset', array('id' => 'settings_email_incoming'));
             // TRANS: Form legend for incoming e-mail settings form.
             $this->element('legend', null, _('Incoming email'));
+
+            $this->elementStart('ul', 'form_data');
+            $this->elementStart('li');
+            $this->checkbox('emailpost',
+                    // TRANS: Checkbox label in e-mail preferences form.
+                    _('I want to post notices by email.'),
+                    $user->emailpost);
+            $this->elementEnd('li');
+            $this->elementEnd('ul');
+
             if ($user->incomingemail) {
                 $this->elementStart('p');
                 $this->element('span', 'address', $user->incomingemail);
@@ -211,14 +221,6 @@ class EmailsettingsAction extends AccountSettingsAction
                            _('Allow friends to nudge me and send me an email.'),
                            $user->emailnotifynudge);
            $this->elementEnd('li');
-           if (common_config('emailpost', 'enabled')) {
-               $this->elementStart('li');
-               $this->checkbox('emailpost',
-                               // TRANS: Checkbox label in e-mail preferences form.
-                               _('I want to post notices by email.'),
-                               $user->emailpost);
-               $this->elementEnd('li');
-           }
            $this->elementStart('li');
            $this->checkbox('emailmicroid',
                            // TRANS: Checkbox label in e-mail preferences form.