]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix navigation for SubMirrorPlugin
authorZach Copley <zach@status.net>
Thu, 29 Sep 2011 07:58:52 +0000 (07:58 +0000)
committerZach Copley <zach@status.net>
Thu, 29 Sep 2011 20:11:51 +0000 (20:11 +0000)
plugins/SubMirror/SubMirrorPlugin.php
plugins/SubMirror/actions/mirrorsettings.php

index ccb32b4a49d68a02ef16fe6780a4c35476be25a4..95fccabe9dc859256969fe3a5d4077fbeee41b1f 100644 (file)
@@ -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'),
index 2db7504a64d9b890b265a459310a767316e87925..000d7ecad09c5045b64becd795a76404264e4518 100644 (file)
@@ -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()