Project

General

Profile

Actions

Bug #17562

closed

function getBeforeAfter in class.tslib_menu.php didn´t work properly

Added by Frank no-lastname-given about 17 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2007-08-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using the typoscript -function "beforeImg", the generated <img>-Tag is not correct. After the height-parameter there is a space missing:

In place of:

height="10" border="0"

you get:

height="10"border="0"

You can fix this by editing the "class.tslib_menu.php".

In line #15154 (Typo3 v4.1.2) change the line:
$res='<img src="'.$GLOBALS['TSFE']->absRefPrefix.$imgInfo3.'" width="'.$imgInfo0.'" height="'.$imgInfo1.'"'.$name.($this->I['val'][$pref.'ImgTagParams']?" ".$this->I['val'][$pref.'ImgTagParams']:'').tslib_cObj::getBorderAttr('border="0" ');

with this:
$res='<img src="'.$GLOBALS['TSFE']->absRefPrefix.$imgInfo3.'" width="'.$imgInfo0.'" height="'.$imgInfo1.'" '.$name.($this->I['val'][$pref.'ImgTagParams']?" ".$this->I['val'][$pref.'ImgTagParams']:'').tslib_cObj::getBorderAttr('border="0" ');
(issue imported from #M6215)


Files

patch_6215.diff (1.04 KB) patch_6215.diff Administrator Admin, 2009-05-29 22:19
ts_menu_test.txt (361 Bytes) ts_menu_test.txt Administrator Admin, 2009-05-29 23:34
patch_6215_v2.diff (1.05 KB) patch_6215_v2.diff Administrator Admin, 2009-05-29 23:34
6215_03.diff (1.4 KB) 6215_03.diff Administrator Admin, 2009-05-30 01:05
Actions #1

Updated by Frank no-lastname-given about 17 years ago

Sorry - this is the wrong category. Can someone move this report to "Typo3 Core"?

Actions

Also available in: Atom PDF