r42164 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42163‎ | r42164 | r42165 >
Date:01:59, 17 October 2008
Author:aaron
Status:old
Tags:
Comment:
Use xml function
Modified paths:
  • /trunk/extensions/CodeReview/CodeRevisionListView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeRevisionListView.php
@@ -29,13 +29,13 @@
3030 function showForm( $path = '' ) {
3131 global $wgOut, $wgScript;
3232 $special = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName().'/path' );
33 - $action = $wgScript;
34 - $wgOut->addHTML( "<form action=\"$action\" method=\"get\">\n" .
 33+ $wgOut->addHTML(
 34+ Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get' ) ) .
3535 "<fieldset><legend>".wfMsgHtml('code-pathsearch-legend')."</legend>" .
3636 Xml::hidden( 'title', $special->getPrefixedDBKey() ) .
3737 Xml::inputlabel( wfMsg("code-pathsearch-path"), 'path', 'path', 55, $this->mPath ) .
3838 '&nbsp;' . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" .
39 - "</fieldset></form>"
 39+ "</fieldset>" . Xml::closeElement( 'form' )
4040 );
4141 }
4242

Status & tagging log