registration: Update conversion script for manifest_version 2
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 22 Jul 2016 21:57:28 +0000 (14:57 -0700)
committerReedy <reedy@wikimedia.org>
Sun, 24 Jul 2016 11:46:53 +0000 (11:46 +0000)
Config settings are now an object, with the value set as the 'value'
key.

Change-Id: Iba3999fdfc8994d50331825c9a416334db602e46

maintenance/convertExtensionToRegistration.php

index 7c87e10..6d2a0e9 100644 (file)
@@ -120,7 +120,7 @@ class ConvertExtensionToRegistration extends Maintenance {
                                $this->hasWarning = true;
                        } elseif ( strpos( $name, $configPrefix ) === 0 ) {
                                // Most likely a config setting
-                               $this->json['config'][substr( $name, strlen( $configPrefix ) )] = $value;
+                               $this->json['config'][substr( $name, strlen( $configPrefix ) )] = [ 'value' => $value ];
                        } elseif ( $configPrefix !== 'wg' && strpos( $name, 'wg' ) === 0 ) {
                                // Warn about this
                                $this->output( 'Warning: Skipped global "' . $name . '" (' .