Fix error from r33495: class -> id. Thanks to Nikerabbit.
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 17 Apr 2008 18:15:11 +0000 (18:15 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 17 Apr 2008 18:15:11 +0000 (18:15 +0000)
includes/SpecialPreferences.php

index b750475..76a16a9 100644 (file)
@@ -888,10 +888,9 @@ class PreferencesForm {
                                } else {
                                        $formatted = $wgLang->timeanddate( $epoch, false, $key );
                                }
-                               $checked = ( $key == $this->mDate ) ? true : false;
                                $wgOut->addHTML(
                                        Xml::tags( 'div', null,
-                                               Xml::radioLabel( $formatted, 'wpDate', $key, "wpDate$idCnt", $checked )
+                                               Xml::radioLabel( $formatted, 'wpDate', $key, "wpDate$idCnt", $key == $this->mDate )
                                        ) . "\n"
                                );
                                $idCnt++;
@@ -910,7 +909,7 @@ class PreferencesForm {
                        $this->addRow( wfMsg( 'localtime' ), $nowlocal ) .
                        $this->addRow(
                                Xml::label( wfMsg( 'timezoneoffset' ), 'wpHourDiff'  ),
-                               Xml::input( 'wpHourDiff', 6, $this->mHourDiff, array( 'class' => 'wpHourDiff' ) ) ) .
+                               Xml::input( 'wpHourDiff', 6, $this->mHourDiff, array( 'id' => 'wpHourDiff' ) ) ) .
                        "<tr>
                                <td></td>
                                <td class='mw-submit'>" .