From: Marcel Werk Date: Thu, 17 Dec 2020 18:20:09 +0000 (+0100) Subject: Removed obsolete parameter X-Git-Tag: 5.3.2~36^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b6a52e7673bbc06475c9cd46204668a1b3c65cbb;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete parameter --- diff --git a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php index 817a35587b..f8befc6904 100644 --- a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php @@ -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); }