From: Mr. E23 Date: Sun, 25 Jan 2004 00:10:38 +0000 (+0000) Subject: Fix for bug in preference save X-Git-Tag: 1.3.0beta1~1112 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7f2a3294e5e5f49dc4175a41c39a7209d92bce26;p=lhc%2Fweb%2Fwiklou.git Fix for bug in preference save --- 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" );