more classic/cologne blue fixage
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 28 Jun 2005 14:37:10 +0000 (14:37 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 28 Jun 2005 14:37:10 +0000 (14:37 +0000)
includes/SpecialPreferences.php

index bf6c200..95f16e0 100644 (file)
@@ -598,6 +598,10 @@ class PreferencesForm {
                                $wgOut->addHTML( "<div><label><input type='radio' name='wpQuickbar' value=\"$i\"$checked />{$qbs[$i]}</label></div>\n" );
                        }
                        $wgOut->addHtml( "</fieldset>\n\n" );
+               } else {
+                       # Need to output a hidden option even if the relevant skin is not in use, 
+                       # otherwise the preference will get reset to 0 on submit
+                       $wgOut->addHTML( "<input type='hidden' name='wpQuickbar' value='{$this->mQuickbar}' />" );
                }
 
                # Skin