Commit graph

4 commits

Author SHA1 Message Date
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
Sam Reed
659778619c Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
Platonides
373d92023a Follow up r59331.
*Check for false on $rev->getText() 
*Use prefixed title on the messages.
*Add --show-private option to bypass revision delete.
2010-01-17 16:00:36 +00:00
Max Semenik
ca5e8b533b Small script to output page text to stdout 2009-11-22 11:30:13 +00:00