[TYPO3-core] RFC #15644: Replace magic numbers for shortcut_mode with class constants
Steffen Gebert
steffen at steffen-gebert.de
Sun Nov 28 23:20:14 CET 2010
> Type: Bugfix/Clean-up
>
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=15644
>
> Branches:
> trunk
>
> Problem:
> Option shortcut_mode uses magic numbers to distinguish the option's value.
>
> Solution:
> Replace them with meaningful class constants:
> > const SHORTCUT_MODE_NONE = 0;
> > const SHORTCUT_MODE_FIRST_SUBPAGE = 1;
> > const SHORTCUT_MODE_RANDOM_SUBPAGE = 2;
> > const SHORTCUT_MODE_PARENT = 3;
attached change has been committed to trunk in rev. 9664 to use the
class constants in tslib_fe::getPageShortcut()
Kind regards
Steffen
--
Steffen Gebert
TYPO3 Core Team Member
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15644-followup-tslib_fe.diff
Type: text/x-diff
Size: 1137 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101128/48bc4882/attachment.diff>
More information about the TYPO3-team-core
mailing list