]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
SubMirror: switch the mirror setup tab from account settings to subscriptions/groups...
authorBrion Vibber <brion@pobox.com>
Tue, 18 Jan 2011 20:34:04 +0000 (12:34 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 18 Jan 2011 20:34:04 +0000 (12:34 -0800)
plugins/SubMirror/SubMirrorPlugin.php
plugins/SubMirror/actions/mirrorsettings.php

index 578ef6607c5fc846d3156f5f25ab15652425a28f..0f2fc247874cc79cad608c9fe59156ae0c279548 100644 (file)
@@ -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'),
index a828b26feb68b07399662f83904f399af1a0cd8b..20e1807b3de286ed4e14aa2c3ba8532dd9fddae2 100644 (file)
@@ -102,4 +102,10 @@ class MirrorSettingsAction extends AccountSettingsAction
     function handlePost()
     {
     }
+
+    function showLocalNav()
+    {
+        $nav = new SubGroupNav($this, common_current_user());
+        $nav->show();
+    }
 }