diff options
author | Tim Starling <tstarling@users.mediawiki.org> | 2009-06-09 17:04:16 +0000 |
---|---|---|
committer | Tim Starling <tstarling@users.mediawiki.org> | 2009-06-09 17:04:16 +0000 |
commit | 9177887791cb348a7458ddce21fbb6b124e0cdd8 (patch) | |
tree | b7fa98508a7f1f8773e62f7d89107e4da54be9d8 /maintenance/userOptions.inc | |
parent | c728bf61cbaab2badc4727439da4b31bae4c7db1 (diff) | |
download | mediawikicore-9177887791cb348a7458ddce21fbb6b124e0cdd8.tar.gz mediawikicore-9177887791cb348a7458ddce21fbb6b124e0cdd8.zip |
Changes related to update.php:
* Removed counter.php. Whoever heard of adding a file for a single line of code? Refactored the callers to GlobalFunctions.php wfCountDown().
* Removed the requirement for $wgDBadminuser to be set in update.php. There really is no security benefit, it's just there to annoy users and cause bugs like #19127. Just use $wgDBuser, commandLine.inc will automatically set it to $wgDBadminuser if it's available.
* Since we're using $wgDBuser now, we may as well just use wfGetDB(DB_MASTER) instead of the rubbish special-case code that was already there. There's no need for special-case error handling, there's already special-case code for command line connection errors, if you don't think that message is informative enough then you can change it there.
* Don't set $options before including commandLine.inc, it doesn't do anything.
* Use require not require_once
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/51650
Diffstat (limited to 'maintenance/userOptions.inc')
-rw-r--r-- | maintenance/userOptions.inc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/maintenance/userOptions.inc b/maintenance/userOptions.inc index 00278f51883c..da641b4b5b5f 100644 --- a/maintenance/userOptions.inc +++ b/maintenance/userOptions.inc @@ -246,13 +246,7 @@ Users with option <$this->mAnOption> = '$this->mOldValue' will be made to use '$ Abort with control-c in the next five seconds.... WARN; - require('counter.php'); - for ($i=6;$i>=1;) { - print_c($i, --$i); - sleep(1); - } - print "\n"; - + wfCountDown( 5 ); return true; } |