[TYPO3-core] RFC #15644: Replace magic numbers for shortcut_mode with class constants

Steffen Gebert steffen at steffen-gebert.de
Sun Sep 5 21:08:02 CEST 2010


Hi!

This is a SVN patch request.

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;

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 Core Team Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15644.diff
Type: text/x-diff
Size: 3928 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100905/e64f1b0a/attachment.diff>


More information about the TYPO3-team-core mailing list