Fixes variable name type
authorMatthias Schmidt <gravatronics@live.com>
Sat, 28 Jul 2012 08:31:48 +0000 (10:31 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 28 Jul 2012 08:31:48 +0000 (10:31 +0200)
wcfsetup/install/files/lib/data/category/CategoryNode.class.php
wcfsetup/install/files/lib/data/category/CategoryNodeList.class.php

index eb81c8a985a485dcb0519e4489c55e7742ab0e0c..315e6c49c87b8402afd36a74e19c4eb91e9acdcd 100644 (file)
@@ -25,7 +25,7 @@ class CategoryNode extends DatabaseObjectDecorator implements \RecursiveIterator
         * indicates if disabled categories are included
         * @var integer
         */
-       protected $inludeDisabledCategories = false;
+       protected $includeDisabledCategories = false;
        
        /**
         * list of object type category ids of excluded categories
@@ -41,16 +41,16 @@ class CategoryNode extends DatabaseObjectDecorator implements \RecursiveIterator
        /**
         * @see wcf\data\DatabaseObjectDecorator::__construct()
         */
-       public function __construct(DatabaseObject $object, $inludeDisabledCategories = false, array $excludedCategoryIDs = array()) {
+       public function __construct(DatabaseObject $object, $includeDisabledCategories = false, array $excludedCategoryIDs = array()) {
                parent::__construct($object);
                
-               $this->inludeDisabledCategories = $inludeDisabledCategories;
+               $this->includeDisabledCategories = $includeDisabledCategories;
                $this->excludedCategoryIDs = $excludedCategoryIDs;
                
                $className = get_called_class();
                foreach (CategoryHandler::getInstance()->getChildCategories($this->getDecoratedObject()) as $category) {
                        if ($this->fulfillsConditions($category)) {
-                               $this->childCategories[] = new $className($category, $inludeDisabledCategories, $excludedCategoryIDs);
+                               $this->childCategories[] = new $className($category, $includeDisabledCategories, $excludedCategoryIDs);
                        }
                }
        }
index 33bed817e13ec87a96d6835150afb9be7b1eb1e0..31d50e2f185b6eb88af474955316873a9d9e2bea 100644 (file)
@@ -37,10 +37,10 @@ class CategoryNodeList extends \RecursiveIteratorIterator implements \Countable
         * 
         * @param       string          $objectType
         * @param       integer         $parentCategoryID
-        * @param       boolean         $inludeDisabledCategories
+        * @param       boolean         $includeDisabledCategories
         * @param       array<integer>  $excludedCategoryIDs
         */
-       public function __construct($objectType, $parentCategoryID = 0, $inludeDisabledCategories = false, array $excludedCategoryIDs = array()) {
+       public function __construct($objectType, $parentCategoryID = 0, $includeDisabledCategories = false, array $excludedCategoryIDs = array()) {
                $this->parentCategoryID = $parentCategoryID;
                
                // get parent category
@@ -58,7 +58,7 @@ class CategoryNodeList extends \RecursiveIteratorIterator implements \Countable
                        }
                }
                
-               parent::__construct(new $this->nodeClassName($parentCategory, $inludeDisabledCategories, $excludedCategoryIDs), \RecursiveIteratorIterator::SELF_FIRST);
+               parent::__construct(new $this->nodeClassName($parentCategory, $includeDisabledCategories, $excludedCategoryIDs), \RecursiveIteratorIterator::SELF_FIRST);
        }
        
        /**