dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
129817c
)
load up includes/Setup.php before Maintenance::finalSetup()
author
Antoine Musso
<hashar@users.mediawiki.org>
Thu, 10 Nov 2011 11:18:50 +0000
(11:18 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Thu, 10 Nov 2011 11:18:50 +0000
(11:18 +0000)
This let us get access to global functions and the autoloader when trying
to do some final setup for our maintenance scripts.
maintenance/doMaintenance.php
patch
|
blob
|
history
diff --git
a/maintenance/doMaintenance.php
b/maintenance/doMaintenance.php
index
6b29c5f
..
c937333
100644
(file)
--- a/
maintenance/doMaintenance.php
+++ b/
maintenance/doMaintenance.php
@@
-93,10
+93,11
@@
if ( $maintenance->getDbType() === Maintenance::DB_ADMIN &&
{
require( MWInit::interpretedPath( 'AdminSettings.php' ) );
}
-$maintenance->finalSetup();
// Some last includes
require_once( MWInit::compiledPath( 'includes/Setup.php' ) );
+$maintenance->finalSetup();
+
// Much much faster startup than creating a title object
$wgTitle = null;