(bug 24700) Update dialog shown when clicking on the special page tab after saving...
authorHuji <huji@users.mediawiki.org>
Fri, 6 Aug 2010 19:07:56 +0000 (19:07 +0000)
committerHuji <huji@users.mediawiki.org>
Fri, 6 Aug 2010 19:07:56 +0000 (19:07 +0000)
RELEASE-NOTES
includes/specials/SpecialPreferences.php

index 8f00131..1c5c9c5 100644 (file)
@@ -278,6 +278,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   instead of showing an error page
 * (bug 24425) Use Database::replace instead of delete/insert in SqlBagOStuff::set
   to avoid query errors about duplicate keynames.
+* (bug 24700) Update dialog shown when clicking on the special page tab after
+  saving preferences
 
 === API changes in 1.17 ===
 * (bug 22738) Allow filtering by action type on query=logevent.
index 720d516..d0e83ac 100644 (file)
@@ -45,7 +45,7 @@ class SpecialPreferences extends SpecialPage {
                
                $wgOut->addScriptFile( 'prefs.js' );
 
-               if ( $wgRequest->getCheck( 'success' ) ) {
+               if ( $wgRequest->getCheck( 'success' ) && $wgRequest->wasPosted()) {
                        $wgOut->wrapWikiMsg(
                                "<div class=\"successbox\"><strong>\n$1\n</strong></div><div id=\"mw-pref-clear\"></div>",
                                'savedprefs'