From: Brion Vibber Date: Tue, 18 Jan 2011 20:34:04 +0000 (-0800) Subject: SubMirror: switch the mirror setup tab from account settings to subscriptions/groups... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d0d1257d9928f9a282874bec0423885839d84a20;p=quix0rs-gnu-social.git SubMirror: switch the mirror setup tab from account settings to subscriptions/groups/invites area --- diff --git a/plugins/SubMirror/SubMirrorPlugin.php b/plugins/SubMirror/SubMirrorPlugin.php index 578ef6607c..0f2fc24787 100644 --- a/plugins/SubMirror/SubMirrorPlugin.php +++ b/plugins/SubMirror/SubMirrorPlugin.php @@ -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'), diff --git a/plugins/SubMirror/actions/mirrorsettings.php b/plugins/SubMirror/actions/mirrorsettings.php index a828b26feb..20e1807b3d 100644 --- a/plugins/SubMirror/actions/mirrorsettings.php +++ b/plugins/SubMirror/actions/mirrorsettings.php @@ -102,4 +102,10 @@ class MirrorSettingsAction extends AccountSettingsAction function handlePost() { } + + function showLocalNav() + { + $nav = new SubGroupNav($this, common_current_user()); + $nav->show(); + } }