[TYPO3-core] RFC: #8152: Icons never created when noIconProc=0 and icon is present

Steffen Kamper steffen at sk-typo3.de
Fri Apr 18 23:42:10 CEST 2008


"Helmut Hummel" <typo3 at jhpc.de> schrieb im Newsbeitrag 
news:mailman.1.1208551771.11202.typo3-team-core at lists.netfielders.de...
> Hi Francois,
>
> Francois Suter wrote:
>>
>> Did you test your patch with the old skin by any chance? It simply
>> doesn't work.
>
> Well, yours do not work for me either ;)
>
>> The error is that when you call
>> t3lib_iconWorks::makeIcon() the 5th parameter ($absfile) is still set to
>> the value of the icon without skinning. To have the skinned icon as a
>> base, $absfile must contain an absolute path calculated with the skinned
>> icon path as a base. The enclosed patch corrects this.
>
> The problem starts earlier:
>
> if (@is_file(dirname($absfile).'/'.$iconFileName_stateTagged))
>
> checks, if there is a preprocessed icon, but it looks up in typo3/gfx... 
> and not
> in the path of the skin. If we want to change it, we must start there, 
> because
> if we leave it this way icons a processed, even if the skin has 
> preprocessed
> icons (which is waste of resources).
>

very good hint. After this i think i got it, please test the new patch.

What i did: i skinned the icon at the beginning, ommitting the backpath.
So i killed two birds with one stone - also preprocessed icons will be 
skinned now.

But with noIconProc=1 there is no fallback to old skin if there is no 
preprocessed icon, because the concept use the normal icon, process the 
flags and extend the iconname with the flags. There are two ways: preprocess 
the icons in skin or create a fallback in makeIcon.

vg Steffen 


begin 666 8152_noIconProc3.diff
M26YD97 at Z('0S;&EB+V-L87-S+G0S;&EB7VEC;VYW;W)K<RYP:' -"CT]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T-"BTM+2!T,VQI8B]C;&%S<RYT,VQI8E]I8V]N
M=V]R:W,N<&AP"2AR979I<VEO;B S-3DR*0T**RLK('0S;&EB+V-L87-S+G0S
M;&EB7VEC;VYW;W)K<RYP:' )*'=O<FMI;F<@8V]P>2D-"D! ("TQ-C,L-R K
M,38S+#$P($! #0H@"0EI9B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="!E;F0@;V8 at 9FEL90T*
$*S\^"@``
`
end



More information about the TYPO3-team-core mailing list