From 14a93daefbe4373c3966719cb9eaeb59539b811f Mon Sep 17 00:00:00 2001 From: Huji Date: Fri, 6 Aug 2010 19:07:56 +0000 Subject: [PATCH] (bug 24700) Update dialog shown when clicking on the special page tab after saving preferences --- RELEASE-NOTES | 2 ++ includes/specials/SpecialPreferences.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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' -- 2.20.1