From 3e709f80ff748a8bf792fdbbb59aca5273c9d381 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Tue, 28 Oct 2008 18:05:25 +0000 Subject: [PATCH] add an id to form elements --- includes/PageHistory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'), -- 2.20.1