[evolvis-commits] r17742: [#2214] plugin-extratabs pending merges:↵ Thorsten Glaser 2011-11-30 actually pass the toptab↵ Thorsten Glaser 2011-11-30 global tabs need the toptab info to work

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Nov 30 16:28:33 CET 2011


Author: mirabilos
Date: 2011-11-30 16:28:33 +0100 (Wed, 30 Nov 2011)
New Revision: 17742

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/include/Navigation.class.php
   trunk/gforge_base/evolvisforge-5.1/src/www/include/Layout.class.php
Log:
[#2214] plugin-extratabs pending merges:
  Thorsten Glaser 2011-11-30 actually pass the toptab
    Thorsten Glaser 2011-11-30 global tabs need the toptab info to work


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/Navigation.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/Navigation.class.php	2011-11-30 15:28:27 UTC (rev 17741)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/Navigation.class.php	2011-11-30 15:28:33 UTC (rev 17742)
@@ -314,6 +314,9 @@
 		$hookParams['TITLES'] = &$menu['titles'];
 		$hookParams['TOOLTIPS'] = &$menu['tooltips'];
 		$hookParams['selected'] = &$menu['selected'];
+		if (isset($menu['toptab'])) {
+			$hookParams['toptab'] = &$menu['toptab'];
+		}
 		plugin_hook ("outermenu", $hookParams) ;
 
                 return $menu;

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/include/Layout.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/include/Layout.class.php	2011-11-30 15:28:27 UTC (rev 17741)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/include/Layout.class.php	2011-11-30 15:28:33 UTC (rev 17742)
@@ -628,7 +628,11 @@
 	}
 
 	function outerTabs($params) {
-		$menu = $this->navigation->getSiteMenu();
+		$p = array();
+		if (isset($params['toptab'])) {
+			$p['toptab'] = $params['toptab'];
+		}
+		$menu = $this->navigation->getSiteMenu($p);
 		echo $this->tabGenerator($menu['urls'], $menu['titles'], false, $menu['selected'], '');
 	}
 



More information about the evolvis-commits mailing list