From 079c63571af1b2567525aa9755353e8d49fbf973 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 28 Jul 2012 10:31:48 +0200 Subject: [PATCH] Fixes variable name type --- .../files/lib/data/category/CategoryNode.class.php | 8 ++++---- .../files/lib/data/category/CategoryNodeList.class.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php index eb81c8a985..315e6c49c8 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php @@ -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); } } } diff --git a/wcfsetup/install/files/lib/data/category/CategoryNodeList.class.php b/wcfsetup/install/files/lib/data/category/CategoryNodeList.class.php index 33bed817e1..31d50e2f18 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNodeList.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNodeList.class.php @@ -37,10 +37,10 @@ class CategoryNodeList extends \RecursiveIteratorIterator implements \Countable * * @param string $objectType * @param integer $parentCategoryID - * @param boolean $inludeDisabledCategories + * @param boolean $includeDisabledCategories * @param array $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); } /** -- 2.20.1