From: Huji Date: Fri, 6 Aug 2010 19:07:56 +0000 (+0000) Subject: (bug 24700) Update dialog shown when clicking on the special page tab after saving... X-Git-Tag: 1.31.0-rc.0~35665 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=14a93daefbe4373c3966719cb9eaeb59539b811f;p=lhc%2Fweb%2Fwiklou.git (bug 24700) Update dialog shown when clicking on the special page tab after saving preferences --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8f00131c0c..1c5c9c5b97 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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. diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 720d5164ff..d0e83ace44 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -45,7 +45,7 @@ class SpecialPreferences extends SpecialPage { $wgOut->addScriptFile( 'prefs.js' ); - if ( $wgRequest->getCheck( 'success' ) ) { + if ( $wgRequest->getCheck( 'success' ) && $wgRequest->wasPosted()) { $wgOut->wrapWikiMsg( "
\n$1\n
", 'savedprefs'