Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/355461 )

Change subject: sizeof -> count
......................................................................

sizeof -> count

Change php function for more common name

Change-Id: I563d94f05e01ea0a4aca7e80b524101691490469
---
M CategoryTreeFunctions.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CategoryTree 
refs/changes/61/355461/1

diff --git a/CategoryTreeFunctions.php b/CategoryTreeFunctions.php
index 588ff95..fd7b0d4 100644
--- a/CategoryTreeFunctions.php
+++ b/CategoryTreeFunctions.php
@@ -40,7 +40,7 @@
 
                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'] ) ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/355461
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I563d94f05e01ea0a4aca7e80b524101691490469
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CategoryTree
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to