Index: trunk/extensions/ProofreadPage/SpecialProofreadPages.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | } |
15 | 15 | |
16 | 16 | public function execute( $parameters ) { |
17 | | - global $wgOut, $wgRequest, $wgDisableTextSearch; |
| 17 | + global $wgOut, $wgRequest, $wgDisableTextSearch, $wgScript; |
18 | 18 | |
19 | 19 | $this->setHeaders(); |
20 | 20 | list( $limit, $offset ) = wfCheckLimits(); |
— | — | @@ -24,7 +24,8 @@ |
25 | 25 | if( !$wgDisableTextSearch ) { |
26 | 26 | $self = $this->getTitle(); |
27 | 27 | $wgOut->addHTML( |
28 | | - Xml::openElement( 'form', array( 'action' => $self->getLocalUrl() ) ) . |
| 28 | + Xml::openElement( 'form', array( 'action' => $wgScript ) ) . |
| 29 | + Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
29 | 30 | Xml::input( 'limit', false, $limit, array( 'type' => 'hidden' ) ) . |
30 | 31 | Xml::openElement( 'fieldset' ) . |
31 | 32 | Xml::element( 'legend', null, wfMsg( 'proofreadpage_specialpage_legend' ) ) . |