From: Alex Z Date: Tue, 28 Oct 2008 18:05:25 +0000 (+0000) Subject: add an id to form elements X-Git-Tag: 1.31.0-rc.0~44532 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=3e709f80ff748a8bf792fdbbb59aca5273c9d381;p=lhc%2Fweb%2Fwiklou.git add an id to form elements --- diff --git a/includes/PageHistory.php b/includes/PageHistory.php index cdf382d709..03a70fb211 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -133,7 +133,7 @@ class PageHistory { $action = htmlspecialchars( $wgScript ); $wgOut->addHTML( Xml::fieldset( wfMsg( 'history-fieldset-title' ), false, array( 'id' => 'mw-history-search' ) ) . - "
" . + "" . Xml::hidden( 'title', $this->mTitle->getPrefixedDBKey() ) . "\n" . Xml::hidden( 'action', 'history' ) . "\n" . $this->getDateMenu( $year, $month ) . ' ' . @@ -198,7 +198,7 @@ class PageHistory { global $wgTitle, $wgScript, $wgEnableHtmlDiff; $this->lastdate = ''; $s = wfMsgExt( 'histlegend', array( 'parse') ); - $s .= Xml::openElement( 'form', array( 'action' => $wgScript ) ); + $s .= Xml::openElement( 'form', array( 'action' => $wgScript, 'id' => 'mw-history-compare' ) ); $s .= Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() ); if($wgEnableHtmlDiff){ $s .= $this->submitButton( wfMsg( 'visualcomparison'),