Commit graph

6 commits

Author SHA1 Message Date
Sam Reed
8e80b8c3c1 Tidy up some unused variables and such 2011-04-23 21:40:52 +00:00
Sam Reed
b88afb0daa Fixup/add documentation
Remove some unused variables
2011-03-30 19:00:11 +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
Tim Starling
f61ceb9cc1 A couple of deepRenames tweaks 2010-12-24 01:31:17 +00:00
Platonides
90050b9926 Reimplement $cp1252Table avoiding th e5.3-only heredoc. 2010-12-22 21:44:05 +00:00
Tim Starling
df31285e23 Long and ugly script to convert the recently-discovered August 2001 backup of Wikipedia to a MediaWiki XML file. 2010-12-21 13:59:19 +00:00