http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70585

Revision: 70585
Author:   huji
Date:     2010-08-06 19:07:56 +0000 (Fri, 06 Aug 2010)

Log Message:
-----------
(bug 24700) Update dialog shown when clicking on the special page tab after 
saving preferences

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/specials/SpecialPreferences.php

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES  2010-08-06 18:58:10 UTC (rev 70584)
+++ trunk/phase3/RELEASE-NOTES  2010-08-06 19:07:56 UTC (rev 70585)
@@ -278,6 +278,8 @@
   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.

Modified: trunk/phase3/includes/specials/SpecialPreferences.php
===================================================================
--- trunk/phase3/includes/specials/SpecialPreferences.php       2010-08-06 
18:58:10 UTC (rev 70584)
+++ trunk/phase3/includes/specials/SpecialPreferences.php       2010-08-06 
19:07:56 UTC (rev 70585)
@@ -45,7 +45,7 @@
                
                $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'



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to