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
Mark A. Hershberger
617a5b1e15
Whitespace fixup under tha maint directory.
2010-12-04 03:20:14 +00:00
Alexandre Emsenhuber
60588f1f9c
Fix path
2010-11-21 15:44:46 +00:00
Sam Reed
39c005ca79
bug 25517 Assignment in conditions should be avoided/ http://www.mediawiki.org/wiki/Manual:Coding_conventions#Assignment_expressions
2010-11-01 00:07:17 +00:00
Alexandre Emsenhuber
066984cbe3
* Standardised file description headers
...
* added @file where needed
* added file description headers where needed
2010-09-05 13:15:48 +00:00
Sam Reed
6afa6c6ab5
Fix some wrong usages of static method calls (actually belong to class instance)
2010-07-25 18:00:32 +00:00
Alexandre Emsenhuber
3e87ac3ab3
Missing line break
2010-06-06 13:31:44 +00:00
Sam Reed
659778619c
Stylize maintenance folder..
2010-05-22 16:50:39 +00:00
Max Semenik
2054cb6307
checkSyntax: fixed check for exclusions on Windows
2010-04-08 15:55:59 +00:00
Chad Horohoe
9b5196a68d
Fix child class visibility
2010-03-10 12:59:44 +00:00
Alexandre Emsenhuber
d32bacd5a5
There's also File_Ogg in MetavidWiki extension ;)
2010-03-08 20:39:47 +00:00
Alexandre Emsenhuber
d34719b7b4
Follow-up r63292: this one is no longer needed
2010-03-05 21:31:35 +00:00
Max Semenik
210d9a402d
Renamed syntaxChecker.php --> checkSyntax, our convention seems to prefer verbs. Also, fixed it to handle --modified with renamed files correctly :P
2010-02-24 17:21:48 +00:00