move othersettings to urlsettings
This commit is contained in:
parent
fca7ea664b
commit
76c0e3169b
@ -47,7 +47,7 @@ require_once INSTALLDIR.'/lib/accountsettingsaction.php';
|
|||||||
* @link http://status.net/
|
* @link http://status.net/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class OthersettingsAction extends AccountSettingsAction
|
class UrlsettingsAction extends AccountSettingsAction
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Title of the page
|
* Title of the page
|
||||||
@ -57,7 +57,7 @@ class OthersettingsAction extends AccountSettingsAction
|
|||||||
|
|
||||||
function title()
|
function title()
|
||||||
{
|
{
|
||||||
return _('Other settings');
|
return _('URL settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,7 +93,7 @@ class OthersettingsAction extends AccountSettingsAction
|
|||||||
'id' => 'form_settings_other',
|
'id' => 'form_settings_other',
|
||||||
'class' => 'form_settings',
|
'class' => 'form_settings',
|
||||||
'action' =>
|
'action' =>
|
||||||
common_local_url('othersettings')));
|
common_local_url('urlsettings')));
|
||||||
$this->elementStart('fieldset');
|
$this->elementStart('fieldset');
|
||||||
$this->hidden('token', common_session_token());
|
$this->hidden('token', common_session_token());
|
||||||
$this->elementStart('ul', 'form_data');
|
$this->elementStart('ul', 'form_data');
|
@ -139,12 +139,12 @@ class AccountSettingsNav extends Widget
|
|||||||
$this->showMenuItem('userdesignsettings',_('Design'),$title);
|
$this->showMenuItem('userdesignsettings',_('Design'),$title);
|
||||||
Event::handle('EndAccountSettingsDesignMenuItem', array($this, &$menu));
|
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.
|
// TRANS: Link title attribute in user account settings menu.
|
||||||
$title = _('Other options');
|
$title = _('URL shortener settings');
|
||||||
// TRANS: Link description in user account settings menu.
|
// TRANS: Link description in user account settings menu.
|
||||||
$this->showMenuItem('othersettings',_('Other'),$title);
|
$this->showMenuItem('urlsettings',_('URL'),$title);
|
||||||
Event::handle('EndAccountSettingsOtherMenuItem', array($this, &$menu));
|
Event::handle('EndAccountSettingsUrlMenuItem', array($this, &$menu));
|
||||||
}
|
}
|
||||||
|
|
||||||
Event::handle('EndAccountSettingsNav', array(&$this->action));
|
Event::handle('EndAccountSettingsNav', array(&$this->action));
|
||||||
|
@ -172,7 +172,7 @@ class Router
|
|||||||
// settings
|
// settings
|
||||||
|
|
||||||
foreach (array('profile', 'avatar', 'password', 'im', 'oauthconnections',
|
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'));
|
$m->connect('settings/'.$s, array('action' => $s.'settings'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user