X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fadminpanelaction.php;h=4868e9d492de116af2ba5b785f1185d7af17ca3c;hb=c421a43b711beda714f4847e767089874a06d626;hp=a085fcd5dc2db3657d19aa877734750e385a5389;hpb=4b24f09ab4212bb696ed5bd73b4b0454c3d52a6f;p=quix0rs-gnu-social.git diff --git a/lib/adminpanelaction.php b/lib/adminpanelaction.php index a085fcd5dc..4868e9d492 100644 --- a/lib/adminpanelaction.php +++ b/lib/adminpanelaction.php @@ -67,7 +67,7 @@ class AdminPanelAction extends Action // User must be logged in. if (!common_logged_in()) { - // TRANS: Client error message thrown when trying to access the admin panel while not logged in. + // TRANS: Error message displayed when trying to perform an action that requires a logged in user. $this->clientError(_('Not logged in.')); return false; } @@ -251,35 +251,6 @@ class AdminPanelAction extends Action return; } - /** - * Delete a design setting - * - * // XXX: Maybe this should go in Design? --Z - * - * @return mixed $result false if something didn't work - */ - function deleteSetting($section, $setting) - { - $config = new Config(); - - $config->section = $section; - $config->setting = $setting; - - if ($config->find(true)) { - $result = $config->delete(); - if (!$result) { - common_log_db_error($config, 'DELETE', __FILE__); - // TRANS: Client error message thrown if design settings could not be deleted in - // TRANS: the admin panel Design. - $this->clientError(_("Unable to delete design setting.")); - return null; - } - return $result; - } - - return null; - } - function canAdmin($name) { $isOK = false; @@ -290,4 +261,8 @@ class AdminPanelAction extends Action return $isOK; } + + function showProfileBlock() + { + } }