Fixed bug #16279: Use class constants for pages:shortcut_mode in tbl_pages.php
authorSteffen Gebert <steffen.gebert@typo3.org>
Tue, 9 Nov 2010 16:52:43 +0000 (16:52 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Tue, 9 Nov 2010 16:52:43 +0000 (16:52 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9322 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/stddb/tbl_pages.php

index 82045ce..934942f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2010-11-09  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #16280: Field size for "shortcut" is 3, although maxitems is 1
+       * Fixed bug #16279: Use class constants for pages:shortcut_mode in tbl_pages.php
 
 2010-11-09  Ernesto Baschny  <ernst@cron-it.de>
 
index 40d9c1a..ca2bb53 100644 (file)
@@ -502,19 +502,19 @@ $TCA['pages'] = array(
                                'items' => array(
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.0',
-                                               0,
+                                               t3lib_pageSelect::SHORTCUT_MODE_NONE,
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.1',
-                                               1,
+                                               t3lib_pageSelect::SHORTCUT_MODE_FIRST_SUBPAGE,
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.2',
-                                               2,
+                                               t3lib_pageSelect::SHORTCUT_MODE_RANDOM_SUBPAGE,
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xml:pages.shortcut_mode.I.3',
-                                               3,
+                                               t3lib_pageSelect::SHORTCUT_MODE_PARENT_PAGE,
                                        ),
                                ),
                                'default' => '0',