Index: trunk/phase3/maintenance/update.php |
— | — | @@ -43,6 +43,7 @@ |
44 | 44 | $this->addOption( 'quick', 'Skip 5 second countdown before starting' ); |
45 | 45 | $this->addOption( 'doshared', 'Also update shared tables' ); |
46 | 46 | $this->addOption( 'nopurge', 'Do not purge the objectcache table after updates' ); |
| 47 | + $this->addOption( 'iknowwhatimdoing', 'Override when $wgMiserMode disables this script' ); |
47 | 48 | } |
48 | 49 | |
49 | 50 | function getDbType() { |
— | — | @@ -75,8 +76,14 @@ |
76 | 77 | } |
77 | 78 | |
78 | 79 | function execute() { |
79 | | - global $wgVersion, $wgTitle, $wgLang; |
| 80 | + global $wgVersion, $wgTitle, $wgLang, $wgMiserMode; |
80 | 81 | |
| 82 | + if( $wgMiserMode && !$this->hasOption( 'iknowwhatimdoing' ) ) { |
| 83 | + $this->error( "Do not run update.php on this wiki. If you're seeing this you should\n" |
| 84 | + . "probably ask for some help in performing your schema updates.\n\n" |
| 85 | + . "If you know what you are doing, you can continue with --iknowwhatimdoing", true ); |
| 86 | + } |
| 87 | + |
81 | 88 | $wgLang = Language::factory( 'en' ); |
82 | 89 | $wgTitle = Title::newFromText( "MediaWiki database updater" ); |
83 | 90 | |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -73,6 +73,7 @@ |
74 | 74 | * (bug 15802) An easy way to look up messages: language qqx which returns |
75 | 75 | the message keys. |
76 | 76 | * (bug 29868) Add support for passing parameters to mw.msg in jquery.localize. |
| 77 | +* (bug 29558) $wgMiserMode now disables update.php by default |
77 | 78 | |
78 | 79 | === Bug fixes in 1.19 === |
79 | 80 | * (bug 28868) Show total pages in the subtitle of an image on the |