[BUGFIX] Pagetree uses wrong setting for limiting number of rendered page nodes
authorOliver Hader <oliver@typo3.org>
Tue, 29 Mar 2011 16:30:33 +0000 (18:30 +0200)
committerOliver Hader <oliver@typo3.org>
Tue, 29 Mar 2011 16:36:46 +0000 (18:36 +0200)
$GLOBALS['BE']['pageTree']['preloadLimit'] should be
$GLOBALS['TYPO3_CONF_VARS']['BE']['pageTree']['preloadLimit']

Change-Id: Iecefc92580a001267056a3748fb4423cb48767c7
Resolves: #25431
Reviewed-on: http://review.typo3.org/1310
Reviewed-by: Steffen Kamper
Tested-by: Steffen Kamper
t3lib/tree/pagetree/class.t3lib_tree_pagetree_dataprovider.php

index 670fb41..d90cf42 100644 (file)
@@ -61,7 +61,7 @@ class t3lib_tree_pagetree_DataProvider extends t3lib_tree_AbstractDataProvider {
         */
        public function __construct($nodeLimit = NULL) {
                if ($nodeLimit === NULL) {
-                       $nodeLimit = $GLOBALS['BE']['pageTree']['preloadLimit'];
+                       $nodeLimit = $GLOBALS['TYPO3_CONF_VARS']['BE']['pageTree']['preloadLimit'];
                }
                $this->nodeLimit = abs(intval($nodeLimit));
 
@@ -96,6 +96,7 @@ class t3lib_tree_pagetree_DataProvider extends t3lib_tree_AbstractDataProvider {
         public function getNodes(t3lib_tree_Node $node, $mountPoint = 0, $level = 0) {
                /** @var $nodeCollection t3lib_tree_pagetree_NodeCollection */
                $nodeCollection = t3lib_div::makeInstance('t3lib_tree_pagetree_NodeCollection');
+
                if ($level >= 99) {
                        return $nodeCollection;
                }