X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsettingsaction.php;h=14e89c2e4d2b7056963b04ea9e3ef169a01fd897;hb=f50bc7044552955af29b2a7426bdd72bfdf9ca8f;hp=1fbf88ecb8e2252363764347bacfca721974c61e;hpb=6eb9e89209133f0bbded33dffff7fcf1ceb1a0c7;p=quix0rs-gnu-social.git diff --git a/lib/settingsaction.php b/lib/settingsaction.php index 1fbf88ecb8..14e89c2e4d 100644 --- a/lib/settingsaction.php +++ b/lib/settingsaction.php @@ -24,7 +24,7 @@ class SettingsAction extends Action { function handle($args) { parent::handle($args); if (!common_logged_in()) { - common_user_error(_t('Not logged in.')); + common_user_error(_('Not logged in.')); return; } else if (!common_is_real_login()) { # Cookie theft means that automatic logins can't @@ -80,21 +80,33 @@ class SettingsAction extends Action { function settings_menu() { # action => array('prompt', 'title') static $menu = - array('profilesettings' => - array('Profile', - 'Change your profile settings'), - 'avatar' => - array('Avatar', - 'Upload a new profile image'), - 'password' => - array('Password', - 'Change your password'), - 'openidsettings' => - array('OpenID', - 'Add or remove OpenIDs'), - 'imsettings' => - array('IM', - 'Updates by instant messenger (IM)')); - $this->nav_menu($menu); + array('profilesettings' => + array('Profile', + 'Change your profile settings'), + 'emailsettings' => + array('Email', + 'Change email handling'), + 'avatar' => + array('Avatar', + 'Upload a new profile image'), + 'password' => + array('Password', + 'Change your password'), + 'openidsettings' => + array('OpenID', + 'Add or remove OpenIDs'), + 'imsettings' => + array('IM', + 'Updates by instant messenger (IM)')); + + $action = $this->trimmed('action'); + common_element_start('ul', array('id' => 'nav_views')); + foreach ($menu as $menuaction => $menudesc) { + common_menu_item(common_local_url($menuaction), + _($menudesc[0]), + _($menudesc[1]), + $action == $menuaction); + } + common_element_end('ul'); } }