[TYPO3-core] RFC#14849: Bugfix: Sprites - user defined page types/modules are not respected anymore
Steffen Ritter
info at rs-websystems.de
Sat Jul 17 10:24:52 CEST 2010
Am 16.07.2010 19:55, schrieb Susanne Moog:
> Hi,
>
> the good news first: the patch works as advertised and in general I
> think it's the right solution, however I get deprecation log entries for
> all the default icons, not only for my custom ones.
This indeed is wrong. The second "fallback part" only should report and
react if the "icon" entry is set... has to be corrected
>
> This might be because there still is the PAGE_TYPES declaration in stddb
>> tables.php (why did you add the deprecation note in the header but did
> not change the definition to the new method?)
>
> Second point:
> In t3lib_iconwork is (lines 200 ff):
>
> if ($table=='pages') {
> // @TODO: RFC #7370: doktype 2&5 are deprecated since TYPO3 4.2-beta1
> if ($row['nav_hide']&& ($row['doktype']==1||$row['doktype']==2))
> $row['doktype'] = 5; // Workaround to change the icon if "Hide in menu"
> was set
>
> if (!$iconfile = $PAGES_TYPES[$row['doktype']]['icon']) {
> $iconfile = $PAGES_TYPES['default']['icon'];
> }
> if ($row['module']&& $ICON_TYPES[$row['module']]['icon']) {
> $iconfile = $ICON_TYPES[$row['module']]['icon'];
> }
>
>
> doesn't this mean that if we deprecate PAGES_TYPES and ICON_TYPES
> another method has to be used here to find the page icons?
this code is not used anymore by core and starting of 4.4 wrong icons
are returned anyways. Furthermore we do not deprecates PAGE_TYPES But
PAGE_TYPES[x][icon] usage
More information about the TYPO3-team-core
mailing list