Fix display of numeric tag names on Special:Tags
authorThis, that and the other <at.light@live.com.au>
Sun, 7 Aug 2016 05:14:16 +0000 (15:14 +1000)
committerThis, that and the other <at.light@live.com.au>
Sun, 7 Aug 2016 05:14:16 +0000 (15:14 +1000)
All tag names that were numbers (e.g. "123456") showed up as "0".

Change-Id: I8da326fa4dfa7e6556fb508c5e4b1f1573d1369b

includes/specials/SpecialTags.php

index 2139949..3ebf5d0 100644 (file)
@@ -128,8 +128,7 @@ class SpecialTags extends SpecialPage {
                        ChangeTags::listExtensionDefinedTags(), true );
 
                // List all defined tags, even if they were never applied
-               $definedTags = array_keys( array_merge(
-                       $this->explicitlyDefinedTags, $this->extensionDefinedTags ) );
+               $definedTags = array_keys( $this->explicitlyDefinedTags + $this->extensionDefinedTags );
 
                // Show header only if there exists atleast one tag
                if ( !$tagStats && !$definedTags ) {