Fix for bug in preference save
authorMr. E23 <e23@users.mediawiki.org>
Sun, 25 Jan 2004 00:10:38 +0000 (00:10 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Sun, 25 Jan 2004 00:10:38 +0000 (00:10 +0000)
includes/SpecialPreferences.php

index da71418..cbfb1b6 100644 (file)
@@ -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" );