diff --git a/plugins/SubMirror/SubMirrorPlugin.php b/plugins/SubMirror/SubMirrorPlugin.php index ccb32b4a49..95fccabe9d 100644 --- a/plugins/SubMirror/SubMirrorPlugin.php +++ b/plugins/SubMirror/SubMirrorPlugin.php @@ -99,15 +99,16 @@ class SubMirrorPlugin extends Plugin /** * Menu item for personal subscriptions/groups area * - * @param Widget $widget Widget being executed + * @param Action $action action being executed * * @return boolean hook return */ - function onEndSubGroupNav($widget) + function onEndAccountSettingsNav($action) { - $action = $widget->out; $action_name = $action->trimmed('action'); + common_debug("ACTION NAME = " . $action_name); + $action->menuItem(common_local_url('mirrorsettings'), // TRANS: SubMirror plugin menu item on user settings page. _m('MENU', 'Mirroring'), diff --git a/plugins/SubMirror/actions/mirrorsettings.php b/plugins/SubMirror/actions/mirrorsettings.php index 2db7504a64..000d7ecad0 100644 --- a/plugins/SubMirror/actions/mirrorsettings.php +++ b/plugins/SubMirror/actions/mirrorsettings.php @@ -153,10 +153,17 @@ class MirrorSettingsAction extends SettingsAction { } + /** + * Show the local navigation menu + * + * This is the same for all settings, so we show it here. + * + * @return void + */ function showLocalNav() { - $nav = new SubGroupNav($this, common_current_user()); - $nav->show(); + $menu = new SettingsNav($this); + $menu->show(); } function showScripts()