From: Raimond Spekking Date: Thu, 17 Apr 2008 18:15:11 +0000 (+0000) Subject: Fix error from r33495: class -> id. Thanks to Nikerabbit. X-Git-Tag: 1.31.0-rc.0~48231 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=f1b503f638d2b8a288d11265e21d5fabd092e1c5;p=lhc%2Fweb%2Fwiklou.git Fix error from r33495: class -> id. Thanks to Nikerabbit. --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index b75047599c..76a16a9f2f 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -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' ) ) ) . " " .