Fixed bug #5053: imgNameNotRandom on TMENU/GMENU could break rollover behaviour
authorOliver Hader <oliver.hader@typo3.org>
Sat, 7 Jul 2007 12:39:01 +0000 (12:39 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 7 Jul 2007 12:39:01 +0000 (12:39 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2391 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 795d9fd..9fd1ad1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-07  Oliver Hader  <oh@inpublica.de>
+
+       * Fixed bug #5053: imgNameNotRandom on TMENU/GMENU could break rollover behaviour
+
 2007-07-07  Wolfgang Klinger <wk@plan2.net>
 
        * Changed back references \1 to ${1} in regular expressions in tslib_fe where necessary
index 6bd3814..f30d467 100755 (executable)
@@ -1585,7 +1585,7 @@ class tslib_tmenu extends tslib_menu {
 
                                $this->I = array();
                                $this->I['key'] = $key;
-                               $this->I['INPfix'] = $this->imgNameNotRandom?'':'_'.$this->INPfixMD5.'_'.$key;
+                               $this->I['INPfix'] = ($this->imgNameNotRandom ? '' : '_'.$this->INPfixMD5).'_'.$key;
                                $this->I['val'] = $val;
                                $this->I['title'] = $this->WMcObj->stdWrap($this->getPageTitle($this->menuArr[$key]['title'],$this->menuArr[$key]['nav_title']),$this->I['val']['stdWrap.']);
                                $this->I['uid'] = $this->menuArr[$key]['uid'];
@@ -2206,7 +2206,7 @@ class tslib_gmenu extends tslib_menu {
 
                                        $this->I = array();
                                        $this->I['key'] = $key;
-                                       $this->I['INPfix']= $this->imgNameNotRandom?'':'_'.$this->INPfixMD5.'_'.$key;
+                                       $this->I['INPfix']= ($this->imgNameNotRandom ? '' : '_'.$this->INPfixMD5).'_'.$key;
                                        $this->I['val'] = $this->result['NO'][$key];
                                        $this->I['title'] = $this->getPageTitle($this->menuArr[$key]['title'],$this->menuArr[$key]['nav_title']);
                                        $this->I['uid'] = $this->menuArr[$key]['uid'];