sizeof -> count

Change php function for more common name

Change-Id: I563d94f05e01ea0a4aca7e80b524101691490469
This commit is contained in:
Umherirrender 2017-05-24 20:00:48 +02:00
parent 6695adc303
commit 3f9ec93abd

View file

@ -40,7 +40,7 @@ class CategoryTree {
if ( $this->mOptions['namespaces'] ) {
# automatically adjust mode to match namespace filter
if ( sizeof( $this->mOptions['namespaces'] ) === 1
if ( count( $this->mOptions['namespaces'] ) === 1
&& $this->mOptions['namespaces'][0] == NS_CATEGORY ) {
$this->mOptions['mode'] = CategoryTreeMode::CATEGORIES;
} elseif ( !in_array( NS_FILE, $this->mOptions['namespaces'] ) ) {