From 7f2a3294e5e5f49dc4175a41c39a7209d92bce26 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Sun, 25 Jan 2004 00:10:38 +0000 Subject: [PATCH] Fix for bug in preference save --- includes/SpecialPreferences.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index da71418778..cbfb1b6ec5 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -19,7 +19,7 @@ function wfSpecialPreferences() if ( isset( $wpReset ) ) { resetPrefs(); mainPrefsForm( WfMsg( "prefsreset" ) ); - } else if ( "submit" == $action || isset( $wpSaveprefs ) ) { + } else if ( isset( $_POST['wpSaveprefs'] ) ) { savePreferences(); } else { resetPrefs(); @@ -215,8 +215,8 @@ function wfSpecialPreferences() $dateopts = $wgLang->getDateFormats(); $togs = $wgLang->getUserToggles(); - $action = wfLocalUrlE( $wgLang->specialPage( "Preferences" ), - "action=submit" ); + $action = wfLocalUrlE( $wgLang->specialPage( "Preferences" )); + $qb = wfMsg( "qbsettings" ); $cp = wfMsg( "changepassword" ); $sk = wfMsg( "skin" ); -- 2.20.1