]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - includes/specials/SpecialFilepath.php
MediaWiki 1.16.0
[autoinstalls/mediawiki.git] / includes / specials / SpecialFilepath.php
index 4a724b1f35f30740faee59892b9540cac912d1dd..8bc1c68bbaf32cb0d02f9ae1cedcec438bb0ed2f 100644 (file)
@@ -37,13 +37,13 @@ class FilepathForm {
        }
 
        function execute() {
-               global $wgOut, $wgTitle, $wgScript;
+               global $wgOut, $wgScript;
 
                $wgOut->addHTML(
                        Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'specialfilepath' ) ) .
                        Xml::openElement( 'fieldset' ) .
                        Xml::element( 'legend', null, wfMsg( 'filepath' ) ) .
-                       Xml::hidden( 'title', $wgTitle->getPrefixedText() ) .
+                       Xml::hidden( 'title', SpecialPage::getTitleFor( 'Filepath' )->getPrefixedText() ) .
                        Xml::inputLabel( wfMsg( 'filepath-page' ), 'file', 'file', 25, is_object( $this->mTitle ) ? $this->mTitle->getText() : '' ) . ' ' .
                        Xml::submitButton( wfMsg( 'filepath-submit' ) ) . "\n" .
                        Xml::closeElement( 'fieldset' ) .