Project

General

Profile

Bug #15114 » bug_6682_trunk_v2.diff

Administrator Admin, 2007-11-21 16:02

View differences:

typo3/sysext/cms/tslib/class.tslib_menu.php (working copy)
}
// Set altText
$this->I['altText'] = $this->I['title'].$this->I['accessKey']['alt'];
$this->I['altText'] = $this->mconf['disableAltText'] ? '' : $this->I['title'].$this->I['accessKey']['alt'];
// search for alt parameter in given imgParams and add it if not present
if ( ! preg_match('/^.*alt="([^"]*)".*/i',$this->I['val']['imgParams']) ) {
$this->I['val']['imgParams'] = 'alt="'.htmlspecialchars($this->I['altText']).'" '.$this->I['val']['imgParams'];
}
// Calling extra processing function
$this->extProc_beforeLinking($key);
......
$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"').($this->mconf['disableAltText'] ? '' : ' 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->I['name'].($this->I['val']['imgParams']?' '.$this->I['val']['imgParams']:'').' />';
// Make before, middle and after parts
$this->I['parts'] = array();
(5-5/6)