// 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."));
}
}
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.')
);
}