[TYPO3-core] Fwd: Bugfix für css-styled IMGTEXT

Franz Holzinger franz at fholzinger.com
Fri Mar 24 18:49:36 CET 2006


Hello Sebastian,

>The base64 encoded stuff doesn't work nicely for me as well - I don't
>know if it is just me or also somebody else experiencing that. I have
>attached the email and patch again:
>
>  
>
I also could not read it with Thunderbird.


Change this

> $GLOBALS['TSFE']->register['columnwidth'] = $columnWidths[$c] +
> (($c==$imageWrapCols-1&&$imagePosition==2)||($c==0&&$imagePosition==1)?0:$colspacing)
> + $border*($borderSpace+$borderThickness)*2;

to

$tmpColspacing = $colspacing;
if (($c==$imageWrapCols-1 && $imagePosition==2) || ($c==0 &&
$imagePosition==1)) {
      $tmpColspacing = 0;
}

$GLOBALS['TSFE']->register['columnwidth'] = $columnWidths[$c] +
$tmpColspacing + $border*($borderSpace+$borderThickness)*2;



The modulo operator is called twice here. It could be reduced to one
call to this slow function only or replaced by a second counter variable.

> $addClassesImageConf[$i%$colCount]


+1


- Franz









More information about the TYPO3-team-core mailing list