[Fusionforge-general] [Fusionforge-commits] r16137 - in branches: Branch_5_2/src/debian Branch_5_2/src/plugins/mediawiki/bin Branch_5_2/src/plugins/mediawiki/etc/cron.d wheezy/debian wheezy/plugins/mediawiki/bin wheezy/plugins/mediawiki/etc/cron.d

Thorsten Glaser t.glaser at tarent.de
Fri Aug 24 10:56:34 CEST 2012


On Fri, 24 Aug 2012, Thorsten Glaser wrote:

> -define( "MEDIAWIKI", true );
> -require_once $gfwww.'plugins/mediawiki/LocalSettings.php' ;
> +$ff_localsettings = forge_get_config('source_path') .
> +    '/www/plugins/mediawiki/LocalSettings.php';
> +if ($preload_localsettings) {
> +	define("MEDIAWIKI", true);
> +	require_once($ff_localsettings);
> +}

Rationale for this is: preloading the $ff_localsettings is not
normally needed, because…

> -array_unshift ($argv, $mwscript, '--conf', $fusionforge_basedir . '/plugins/mediawiki/www/LocalSettings.php') ;
> +array_unshift($argv, $mwscript, '--conf', $ff_localsettings);

… this is honoured by most MediaWiki maintainer scripts. (In fact,
all I checked, which are all ever used by the forge.)

In case some maintainer script does *not* honour the --conf option,
just run it with the new -L option for the wrapper.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-314
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Boris Esser, Sebastian Mancke



More information about the Fusionforge-general mailing list