Commit graph

7 commits

Author SHA1 Message Date
Sam Reed
8bfd19b451 Swap else if for elseif
Trimming trailing whitespace also

Doing in 3 commits (3/3), so hopefully reviewable in CR...
2011-06-17 16:05:35 +00:00
Sam Reed
1cc6c09281 $somevariable; doesn't count as defining a variable 2011-02-27 00:36:10 +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
X!
92a314944a Update to use the PHPUnit autoloader, define $IP 2011-01-04 01:33:57 +00:00
Platonides
df2e323358 Remove debugging var_dump, add , in message. 2010-12-27 18:55:41 +00:00
Priyanka Dhanda
1b4bd529e8 Make these tests run again. I think this is the right fix. At least they run now. 2010-12-15 23:00:11 +00:00
Chad Horohoe
354cb9f51c Fix a few more paths, restore a few files lost in the move 2010-12-14 16:48:44 +00:00