dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Don't rely on $wgTitle in WebRequest"
[lhc/web/wiklou.git]
/
maintenance
/
doMaintenance.php
diff --git
a/maintenance/doMaintenance.php
b/maintenance/doMaintenance.php
index
28a0545
..
46844c9
100644
(file)
--- a/
maintenance/doMaintenance.php
+++ b/
maintenance/doMaintenance.php
@@
-44,6
+44,7
@@
if ( !$maintClass || !class_exists( $maintClass ) ) {
}
// Get an object to start us off
}
// Get an object to start us off
+/** @var Maintenance $maintenance */
$maintenance = new $maintClass();
// Basic sanity checks and such
$maintenance = new $maintClass();
// Basic sanity checks and such
@@
-89,6
+90,8
@@
if ( $maintenance->getDbType() === Maintenance::DB_NONE ) {
$wgLocalisationCacheConf['storeClass'] = 'LCStoreNull';
}
}
$wgLocalisationCacheConf['storeClass'] = 'LCStoreNull';
}
}
+
+$maintenance->setConfig( ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) );
$maintenance->finalSetup();
// Some last includes
require_once "$IP/includes/Setup.php";
$maintenance->finalSetup();
// Some last includes
require_once "$IP/includes/Setup.php";