From f1b503f638d2b8a288d11265e21d5fabd092e1c5 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 17 Apr 2008 18:15:11 +0000 Subject: [PATCH] Fix error from r33495: class -> id. Thanks to Nikerabbit. --- includes/SpecialPreferences.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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' ) ) ) . " " . -- 2.20.1