r21632 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21631‎ | r21632 | r21633 >
Date:19:02, 26 April 2007
Author:brion
Status:old
Tags:
Comment:
make get form work with ugly urls
Modified paths:
  • /trunk/extensions/Filepath/SpecialFilepath_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Filepath/SpecialFilepath_body.php
@@ -48,17 +48,18 @@
4949 }
5050
5151 function execute() {
52 - global $wgOut, $wgTitle;
 52+ global $wgOut, $wgTitle, $wgScript;
5353
5454 $wgOut->addHTML(
5555 wfElement( 'form',
5656 array(
5757 'id' => 'specialfilepath',
5858 'method' => 'get',
59 - 'action' => $wgTitle->escapeLocalUrl()
 59+ 'action' => $wgScript,
6060 ),
6161 null
6262 ) .
 63+ wfHidden( 'title', $wgTitle->getPrefixedText() ) .
6364 wfOpenElement( 'label' ) .
6465 wfMsgHtml( 'filepath_page' ) .
6566 ' ' .