From d0d1257d9928f9a282874bec0423885839d84a20 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 18 Jan 2011 12:34:04 -0800 Subject: [PATCH] SubMirror: switch the mirror setup tab from account settings to subscriptions/groups/invites area --- plugins/SubMirror/SubMirrorPlugin.php | 7 ++++--- plugins/SubMirror/actions/mirrorsettings.php | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) 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(); + } } -- 2.39.5