X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsettingsaction.php;h=615a5cbae0e86116cc21b1bc73da2c5c85d9f881;hb=f61cce95a37747e7df50e7d973aa9b274e25db94;hp=d74e226d8510cf7a6b35043bc463a8b03319dfda;hpb=3b14b7901c65144835d74b712279d0492c267c0c;p=quix0rs-gnu-social.git diff --git a/lib/settingsaction.php b/lib/settingsaction.php index d74e226d85..615a5cbae0 100644 --- a/lib/settingsaction.php +++ b/lib/settingsaction.php @@ -1,22 +1,22 @@ . */ - + if (!defined('LACONICA')) { exit(1); } class SettingsAction extends Action { @@ -26,8 +26,7 @@ class SettingsAction extends Action { if (!common_logged_in()) { common_user_error(_t('Not logged in.')); return; - } - if ($this->arg('METHOD') == 'POST') { + } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->handle_post(); } else { $this->show_form(); @@ -38,21 +37,21 @@ class SettingsAction extends Action { function handle_post() { return false; } - + function show_form($msg=NULL, $success=false) { return false; } - function show_message($msg, $success) { + function message($msg, $success) { if ($msg) { common_element('div', ($success) ? 'success' : 'error', $msg); } } - + function settings_menu() { - common_element_start('ul', 'headmenu'); - common_menu_item(common_local_url('editprofile'), + common_element_start('ul', 'settingsmenu menuish'); + common_menu_item(common_local_url('profilesettings'), _t('Profile')); common_menu_item(common_local_url('avatar'), _t('Avatar'));