X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fregistration%2FExtensionProcessor.php;h=a286f6bf990bbf3d731b05210270eb24dbfd3688;hb=35f61c7c4b38388dc498f898193f1dda0461e0b3;hp=1ceded16ff829ad7602e476c52250803494b2226;hpb=cef1f31167177ca05c8981d61d1203172329345d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/registration/ExtensionProcessor.php b/includes/registration/ExtensionProcessor.php index 1ceded16ff..a286f6bf99 100644 --- a/includes/registration/ExtensionProcessor.php +++ b/includes/registration/ExtensionProcessor.php @@ -315,9 +315,15 @@ class ExtensionProcessor implements Processor { */ protected function extractConfig( array $info ) { if ( isset( $info['config'] ) ) { + if ( isset( $info['config']['_prefix'] ) ) { + $prefix = $info['config']['_prefix']; + unset( $info['config']['_prefix'] ); + } else { + $prefix = 'wg'; + } foreach ( $info['config'] as $key => $val ) { if ( $key[0] !== '@' ) { - $this->globals["wg$key"] = $val; + $this->globals["$prefix$key"] = $val; } } }