[Mediawiki-l] update.php ignores LocalSettings in command line mode

Axel Rau axel.rau at chaos1.de
Tue Oct 26 13:36:05 UTC 2010


Hello all,

while trying to update my wiki_family from 1.15.4 to 1.16.0, I see that
update.php tries to update my public schema, which contains no wiki.

My PostgreSQL 8.4.5 setup has one schema per wiki, as described here:
	http://www.mediawiki.org/wiki/Manual:Wiki_family#Ultimate_minimalist_solution

My LocalSettings contains:
-------
$mysites=array(
	array('BarbarasWiki','w_barbara','w_barbara'),
	array('Admin Wiki', 'w_admin', 'w_admin'));

foreach($mysites as $site){

if(strpos($_SERVER['SCRIPT_NAME'],$site[1])!==false){$wgSitename= 
$site[0];$wgDBmwschema=$site[2];break;}}
##trigger_error("_SERVER['SCRIPT_NAME'] = " . $_SERVER['SCRIPT_NAME'] .
", wgSitename =" . $wgSitename,E_USER_ERROR);
if(!$wgSitename && $wgCommandLineMode) {
   foreach($mysites as $site){

if(strpos($_SERVER['PWD'],$site[1])!==false){$wgSitename=$site[0]; 
$wgDBmwschema=$site[2];break;}}}

if(!$wgSitename){trigger_error('Internal Error - Please mail
webmaster',E_USER_ERROR);}
-------

What shall I do to update my schemas?

Thanks, Axel
---
axel.rau at chaos1.de  PGP-Key:29E99DD6  +49 151 2300 9283  computing @  
chaos claudius




More information about the MediaWiki-l mailing list