From: <sy...@us...> - 2011-06-03 13:34:47
|
Revision: 34741 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=34741&view=rev Author: sylvieg Date: 2011-06-03 13:34:41 +0000 (Fri, 03 Jun 2011) Log Message: ----------- [FIX]menu: to have sectionLevel working when using a section level i intstead of option in the menu + to be able to display the submenu as a main menu Modified Paths: -------------- branches/7.x/lib/menubuilder/menulib.php Modified: branches/7.x/lib/menubuilder/menulib.php =================================================================== --- branches/7.x/lib/menubuilder/menulib.php 2011-06-02 21:19:15 UTC (rev 34740) +++ branches/7.x/lib/menubuilder/menulib.php 2011-06-03 13:34:41 UTC (rev 34741) @@ -345,6 +345,15 @@ } } if (!empty($subMenu) && $findUrl && $cant) { + $lower = false; + foreach ($subMenu as $i=>$option) {// begin all the secrtion at 0 to have a nice display + if (is_numeric($option['type'])) { + if ($lower === false) { + $lower = $option['type']; + } + $subMenu[$i]['type'] -= $lower; + } + } $channels['data'] = $subMenu; $channels['cant'] = $cant; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |