]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/sitenoticeadminpanel.php
Add basic support for Georgian (ka)
[quix0rs-gnu-social.git] / actions / sitenoticeadminpanel.php
index 613a2e96beff7dda40d9ffddafaab40a34081124..bdcaa235573eb6e49e67b3ba88a8e614dc9d275a 100644 (file)
@@ -93,13 +93,13 @@ class SitenoticeadminpanelAction extends AdminPanelAction
         // assert(all values are valid);
         // This throws an exception on validation errors
 
-        $this->validate(&$siteNotice);
+        $this->validate($siteNotice);
 
         $config = new Config();
 
         $result = Config::save('site', 'notice', $siteNotice);
 
-        if (!result) {
+        if (!$result) {
             $this->ServerError(_("Unable to save site notice."));
         }
     }
@@ -110,7 +110,7 @@ class SitenoticeadminpanelAction extends AdminPanelAction
 
         if (mb_strlen($siteNotice) > 255)  {
             $this->clientError(
-                _('Max length for the site-wide notice is 255 chars')
+                _('Max length for the site-wide notice is 255 chars.')
             );
         }