Commit graph

9 commits

Author SHA1 Message Date
Roan Kattouw
86a5b6c87f Merge r81725 from 1.17wmf1: add parent constructor call so $IP is set properly 2011-02-08 12:19:59 +00:00
Chad Horohoe
26505b170a Fix concern raised by Brion in r74108 (but has really existed since the maintenance rewrite). Right now, including a maintenance script causes it to execute. This is bad when you want to reuse the particular class but not have it start executing all by itself.
Until now, we relied on setting MW_NO_SETUP which was a) hacky, b) irreversable, and c) likely to be forgotten if you didn't use one of the wrappers like runChild().

Instead, move the freaky magic to doMaintenance and have *it* check if it's in a specific call stack that indicates this is being run from the file scope and should be executed. Rename DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN so it's nice and clear what magic happens behind the require_once().
2011-01-13 22:58:55 +00:00
Alexandre Emsenhuber
9f5d06527c Part of bug 26280: added license headers to PHP files in maintenance 2010-12-16 19:15:12 +00:00
Sam Reed
b6f2713294 Remove unused variable
Remove 1 unused global
2010-07-24 21:11:29 +00:00
Sam Reed
659778619c Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
Tim Starling
0956ad88ed Don't include the old ExtensionMessages.php when you're building a new one. Otherwise renames break. 2009-11-27 00:18:59 +00:00
Tim Starling
1d8d173ecc Assorted tweaks. 2009-09-18 05:23:10 +00:00
Tim Starling
a89f29f7b4 Was too slow. Trying different approach. 2009-09-18 04:27:28 +00:00
Tim Starling
307d27e6e8 Script to produce a merged $wgExtensionMessagesFiles for the case where a wiki farm uses different messages for different wikis. 2009-09-18 03:34:34 +00:00