* (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
$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() {
}
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" );