registration: Fix merging of $wgRevokePermissions
authorKunal Mehta <legoktm@gmail.com>
Sat, 1 Aug 2015 06:40:07 +0000 (23:40 -0700)
committerKunal Mehta <legoktm@gmail.com>
Sat, 1 Aug 2015 06:40:07 +0000 (23:40 -0700)
It's the same as $wgGroupPermissions.

Change-Id: I9c289219c53314970e7af5998c00d6a372bb00cb

includes/registration/ExtensionRegistry.php

index 858f3bf..c9df4b1 100644 (file)
@@ -187,7 +187,7 @@ class ExtensionRegistry {
                                // Special case $wgHooks and $wgExtensionCredits, which require a recursive merge.
                                // Ideally it would have been taken care of in the first if block though.
                                $GLOBALS[$key] = array_merge_recursive( $GLOBALS[$key], $val );
-                       } elseif ( $key === 'wgGroupPermissions' ) {
+                       } elseif ( $key === 'wgGroupPermissions' || $key === 'wgRevokePermissions' ) {
                                // First merge individual groups
                                foreach ( $GLOBALS[$key] as $name => &$groupVal ) {
                                        if ( isset( $val[$name] ) ) {