registration: Fix ignoring 'merge_strategy' key in manifest_version 2
authorYuri Astrakhan <yurik@wikimedia.org>
Tue, 18 Oct 2016 04:46:11 +0000 (00:46 -0400)
committerLegoktm <legoktm.wikipedia@gmail.com>
Tue, 18 Oct 2016 06:47:50 +0000 (06:47 +0000)
Bug: T148493
Change-Id: Ibd88c4dc98f36d7d8336691884bbaa9a4864da83

includes/registration/ExtensionProcessor.php

index 745c233..d613b2e 100644 (file)
@@ -397,7 +397,7 @@ class ExtensionProcessor implements Processor {
                if ( isset( $info['config'] ) ) {
                        foreach ( $info['config'] as $key => $data ) {
                                $value = $data['value'];
-                               if ( isset( $value['merge_strategy'] ) ) {
+                               if ( isset( $data['merge_strategy'] ) ) {
                                        $value[ExtensionRegistry::MERGE_STRATEGY] = $data['merge_strategy'];
                                }
                                if ( isset( $data['path'] ) && $data['path'] ) {