We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d0d1257d authored by Brion Vibber's avatar Brion Vibber

SubMirror: switch the mirror setup tab from account settings to subscriptions/groups/invites area

parent aa4a8e50
......@@ -93,15 +93,16 @@ class SubMirrorPlugin extends Plugin
}
/**
* Menu item for settings
* Menu item for personal subscriptions/groups area
*
* @param Action &$action Action being executed
* @param Widget $widget Widget being executed
*
* @return boolean hook return
*/
function onEndAccountSettingsNav(&$action)
function onEndSubGroupNav($widget)
{
$action = $widget->out;
$action_name = $action->trimmed('action');
$action->menuItem(common_local_url('mirrorsettings'),
......
......@@ -102,4 +102,10 @@ class MirrorSettingsAction extends AccountSettingsAction
function handlePost()
{
}
function showLocalNav()
{
$nav = new SubGroupNav($this, common_current_user());
$nav->show();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment