Added feature #6637: Integrate possibility to reverse order of rootline HMENU
authorOliver Hader <oliver.hader@typo3.org>
Sat, 1 Nov 2008 11:44:04 +0000 (11:44 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 1 Nov 2008 11:44:04 +0000 (11:44 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4402 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_menu.php

index dd3b00b..255a434 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-01  Oliver Hader  <oliver@typo3.org>
+
+       * Added feature #6637: Integrate possibility to reverse order of rootline HMENU (thanks to Ralf Hettinger)
+
 2008-10-31  Jeff Segars  <jeff@webempoweredchurch.org>
 
        * Added feature #6626: config.fileTarget for link target on files (thanks to Ralf Hettinger)
index 2ab45a5..7d999e9 100755 (executable)
@@ -675,7 +675,12 @@ class tslib_menu {
                                                                // For normal mount points, set the variable for next level.
                                                        if ($v_rl['_MP_PARAM'] && !$v_rl['_MOUNT_OL'])  {
                                                                $rl_MParray[] = $v_rl['_MP_PARAM'];
+                                                       }
                                                }
+                                                       // Reverse order of elements (e.g. "1,2,3,4" gets "4,3,2,1"):
+                                               if (isset($this->conf['special.']['reverseOrder']) && $this->conf['special.']['reverseOrder']) {
+                                                       $temp = array_reverse($temp);
+                                                       $rl_MParray = array_reverse($rl_MParray);
                                                }
                                        break;
                                        case 'browse':