]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/designsettings.php
Only unbind privacy checkbox when actually on mobile profile, oops.
[quix0rs-gnu-social.git] / lib / designsettings.php
index d0601c5530a91eb349af49d13b423c29558b2008..cb65ca14cbfa80b2d7395817dfd116658fe42d4a 100644 (file)
@@ -32,9 +32,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
-require_once INSTALLDIR . '/lib/accountsettingsaction.php';
-require_once INSTALLDIR . '/lib/webcolor.php';
-
 /**
  * Base class for setting a user or group design
  *
@@ -48,7 +45,8 @@ require_once INSTALLDIR . '/lib/webcolor.php';
  * @license  http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link     http://status.net/
  */
-class DesignSettingsAction extends AccountSettingsAction
+
+class DesignSettingsAction extends SettingsAction
 {
     var $submitaction = null;
 
@@ -121,6 +119,7 @@ class DesignSettingsAction extends AccountSettingsAction
         // CSRF protection
         $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;
@@ -215,7 +214,7 @@ class DesignSettingsAction extends AccountSettingsAction
             if ($result === false) {
                 common_log_db_error($design, 'UPDATE', __FILE__);
                 // TRANS: Error message displayed if design settings could not be saved.
-                $this->showForm(_('Couldn\'t update your design.'));
+                $this->showForm(_('Could not update your design.'));
                 return;
             }
         }
@@ -237,7 +236,7 @@ class DesignSettingsAction extends AccountSettingsAction
             if ($result === false) {
                 common_log_db_error($design, 'DELETE', __FILE__);
                 // TRANS: Error message displayed if design settings could not be saved after clicking "Use defaults".
-                $this->showForm(_('Couldn\'t update your design.'));
+                $this->showForm(_('Could not update your design.'));
                 return;
             }
         }