Use $wgScript rather than $this->getTitle()->getLocalURL() for the action parameter...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 30 Aug 2009 19:41:18 +0000 (19:41 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 30 Aug 2009 19:41:18 +0000 (19:41 +0000)
Reported by MaxSem on IRC.

includes/specials/SpecialListfiles.php

index dbfdbd5..ae19ea9 100644 (file)
@@ -158,10 +158,10 @@ class ImageListPager extends TablePager {
        }
 
        function getForm() {
-               global $wgRequest, $wgMiserMode;
+               global $wgRequest, $wgScript, $wgMiserMode;
                $search = $wgRequest->getText( 'ilsearch' );
 
-               $s = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $this->getTitle()->getLocalURL(), 'id' => 'mw-listfiles-form' ) ) .
+               $s = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-listfiles-form' ) ) .
                        Xml::openElement( 'fieldset' ) .
                        Xml::element( 'legend', null, wfMsg( 'listfiles' ) ) .
                        Xml::tags( 'label', null, wfMsgHtml( 'table_pager_limit', $this->getLimitSelect() ) );