r109742 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109741‎ | r109742 | r109743 >
Date:18:12, 22 January 2012
Author:zaran
Status:ok
Tags:miscextensions 
Comment:
Bug 33719 - Correct search form by passing the title as a hidden parameter in Special:IndexPages.
Modified paths:
  • /trunk/extensions/ProofreadPage/SpecialProofreadPages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/SpecialProofreadPages.php
@@ -13,7 +13,7 @@
1414 }
1515
1616 public function execute( $parameters ) {
17 - global $wgOut, $wgRequest, $wgDisableTextSearch;
 17+ global $wgOut, $wgRequest, $wgDisableTextSearch, $wgScript;
1818
1919 $this->setHeaders();
2020 list( $limit, $offset ) = wfCheckLimits();
@@ -24,7 +24,8 @@
2525 if( !$wgDisableTextSearch ) {
2626 $self = $this->getTitle();
2727 $wgOut->addHTML(
28 - Xml::openElement( 'form', array( 'action' => $self->getLocalUrl() ) ) .
 28+ Xml::openElement( 'form', array( 'action' => $wgScript ) ) .
 29+ Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) .
2930 Xml::input( 'limit', false, $limit, array( 'type' => 'hidden' ) ) .
3031 Xml::openElement( 'fieldset' ) .
3132 Xml::element( 'legend', null, wfMsg( 'proofreadpage_specialpage_legend' ) ) .

Status & tagging log