Bug #6682: GMENU property disableAltText clears the content of alt param, but does...
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 10 Nov 2007 12:05:17 +0000 (12:05 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 10 Nov 2007 12:05:17 +0000 (12:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2685 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index cd4db56..b1fd9a7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
 2007-11-10  Ingmar Schlecht  <ingmar@typo3.org>
 
-       * Feature #6256: $TCA: Newline for Tabs (--div--)
-       * Feature #4280: stdWrap for params property of IMAGE
+       * Feature #6256: $TCA: Newline for Tabs (--div--) (Thanks to Malte Jansen)
+       * Minor Feature #4280: stdWrap for params property of IMAGE (Thanks to Ralf Hettinger)
+       * Bug #6682: GMENU property disableAltText clears the content of alt param, but does not remove it (Thanks to Hemlut Hummel)
 
 2007-11-09  Benjamin Mack  <mack@xnos.org>
 
index bb119ca..c67566c 100755 (executable)
@@ -2273,7 +2273,7 @@ class tslib_gmenu extends tslib_menu {
                                        }
 
                                                // Set altText
-                                       $this->I['altText'] = $this->mconf['disableAltText'] ? '' : $this->I['title'].$this->I['accessKey']['alt'];
+                                       $this->I['altText'] = $this->I['title'].$this->I['accessKey']['alt'];
 
                                                // Calling extra processing function
                                        $this->extProc_beforeLinking($key);
@@ -2285,7 +2285,7 @@ class tslib_gmenu extends tslib_menu {
                                                $this->I['A1'] = '';
                                                $this->I['A2'] = '';
                                        }
-                                       $this->I['IMG'] = '<img src="'.$GLOBALS['TSFE']->absRefPrefix.$this->I['val']['output_file'].'" width="'.$this->I['val']['output_w'].'" height="'.$this->I['val']['output_h'].'" '.tslib_cObj::getBorderAttr('border="0"').' alt="'.htmlspecialchars($this->I['altText']).'"'.$this->I['name'].($this->I['val']['imgParams']?' '.$this->I['val']['imgParams']:'').' />';
+                                       $this->I['IMG'] = '<img src="'.$GLOBALS['TSFE']->absRefPrefix.$this->I['val']['output_file'].'" width="'.$this->I['val']['output_w'].'" height="'.$this->I['val']['output_h'].'" '.tslib_cObj::getBorderAttr('border="0"').($this->mconf['disableAltText'] ? '' : ' alt="'.htmlspecialchars($this->I['altText']).'"').$this->I['name'].($this->I['val']['imgParams']?' '.$this->I['val']['imgParams']:'').' />';
 
                                                // Make before, middle and after parts
                                        $this->I['parts'] = array();