move othersettings to urlsettings

This commit is contained in:
Evan Prodromou 2010-09-11 16:22:03 -04:00
parent fca7ea664b
commit 76c0e3169b
3 changed files with 8 additions and 8 deletions

View File

@ -47,7 +47,7 @@ require_once INSTALLDIR.'/lib/accountsettingsaction.php';
* @link http://status.net/
*/
class OthersettingsAction extends AccountSettingsAction
class UrlsettingsAction extends AccountSettingsAction
{
/**
* Title of the page
@ -57,7 +57,7 @@ class OthersettingsAction extends AccountSettingsAction
function title()
{
return _('Other settings');
return _('URL settings');
}
/**
@ -93,7 +93,7 @@ class OthersettingsAction extends AccountSettingsAction
'id' => 'form_settings_other',
'class' => 'form_settings',
'action' =>
common_local_url('othersettings')));
common_local_url('urlsettings')));
$this->elementStart('fieldset');
$this->hidden('token', common_session_token());
$this->elementStart('ul', 'form_data');

View File

@ -139,12 +139,12 @@ class AccountSettingsNav extends Widget
$this->showMenuItem('userdesignsettings',_('Design'),$title);
Event::handle('EndAccountSettingsDesignMenuItem', array($this, &$menu));
}
if(Event::handle('StartAccountSettingsOtherMenuItem', array($this, &$menu))){
if(Event::handle('StartAccountSettingsUrlMenuItem', array($this, &$menu))){
// TRANS: Link title attribute in user account settings menu.
$title = _('Other options');
$title = _('URL shortener settings');
// TRANS: Link description in user account settings menu.
$this->showMenuItem('othersettings',_('Other'),$title);
Event::handle('EndAccountSettingsOtherMenuItem', array($this, &$menu));
$this->showMenuItem('urlsettings',_('URL'),$title);
Event::handle('EndAccountSettingsUrlMenuItem', array($this, &$menu));
}
Event::handle('EndAccountSettingsNav', array(&$this->action));

View File

@ -172,7 +172,7 @@ class Router
// settings
foreach (array('profile', 'avatar', 'password', 'im', 'oauthconnections',
'oauthapps', 'email', 'sms', 'userdesign', 'other') as $s) {
'oauthapps', 'email', 'sms', 'userdesign', 'url') as $s) {
$m->connect('settings/'.$s, array('action' => $s.'settings'));
}