(bug 29558) Add config var to disable update.php. Did this by checking $wgMiserMode and bailing unless --iknowwhatimdoing
This commit is contained in:
parent
d7f48f6aef
commit
e5ca759a8f
2 changed files with 9 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ production.
|
|||
* (bug 15802) An easy way to look up messages: language qqx which returns
|
||||
the message keys.
|
||||
* (bug 29868) Add support for passing parameters to mw.msg in jquery.localize.
|
||||
* (bug 29558) $wgMiserMode now disables update.php by default
|
||||
|
||||
=== Bug fixes in 1.19 ===
|
||||
* (bug 28868) Show total pages in the subtitle of an image on the
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ class UpdateMediaWiki extends Maintenance {
|
|||
$this->addOption( 'quick', 'Skip 5 second countdown before starting' );
|
||||
$this->addOption( 'doshared', 'Also update shared tables' );
|
||||
$this->addOption( 'nopurge', 'Do not purge the objectcache table after updates' );
|
||||
$this->addOption( 'iknowwhatimdoing', 'Override when $wgMiserMode disables this script' );
|
||||
}
|
||||
|
||||
function getDbType() {
|
||||
|
|
@ -75,7 +76,13 @@ class UpdateMediaWiki extends Maintenance {
|
|||
}
|
||||
|
||||
function execute() {
|
||||
global $wgVersion, $wgTitle, $wgLang;
|
||||
global $wgVersion, $wgTitle, $wgLang, $wgMiserMode;
|
||||
|
||||
if( $wgMiserMode && !$this->hasOption( 'iknowwhatimdoing' ) ) {
|
||||
$this->error( "Do not run update.php on this wiki. If you're seeing this you should\n"
|
||||
. "probably ask for some help in performing your schema updates.\n\n"
|
||||
. "If you know what you are doing, you can continue with --iknowwhatimdoing", true );
|
||||
}
|
||||
|
||||
$wgLang = Language::factory( 'en' );
|
||||
$wgTitle = Title::newFromText( "MediaWiki database updater" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue