Removed obsolete parameter
authorMarcel Werk <burntime@woltlab.com>
Thu, 17 Dec 2020 18:20:09 +0000 (19:20 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 17 Dec 2020 18:20:09 +0000 (19:20 +0100)
wcfsetup/install/files/lib/system/option/OptionHandler.class.php

index 817a35587b27ca45da394b3bbba17322d2c0855a..f8befc6904737b510f7b0d2e096f3dafe296bb00 100644 (file)
@@ -250,13 +250,12 @@ class OptionHandler implements IOptionHandler {
         * Counts the number of options in a specific option category.
         *
         * @param       string          $categoryName
-        * @param       bool            $inherit
         * @return      int
         */
-       public function countCategoryOptions($categoryName = '', $inherit = true) {
+       public function countCategoryOptions($categoryName = '') {
                $count = 0;
                
-               if ($inherit && isset($this->cachedCategoryStructure[$categoryName])) {
+               if (isset($this->cachedCategoryStructure[$categoryName])) {
                        foreach ($this->cachedCategoryStructure[$categoryName] as $subCategoryName) {
                                $count += $this->countCategoryOptions($subCategoryName);
                        }