* (bug 30977) Remove directions cruft, undo random limitation of input format for...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Sep 2011 21:16:00 +0000 (21:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 19 Sep 2011 21:16:00 +0000 (21:16 +0000)
Reverts r43471 which forced Special:FilePath's input to not accept titles with the File: or Image: namespace on them, or otherwise requiring any normalization beyond space/underscore.
Also removes the extra line saying 'input the name without the file: prefix' which used the native namespace name, which prompted a question about its formatting in mixed-directionality contexts.

includes/specials/SpecialFilepath.php
languages/messages/MessagesEn.php

index 3effa52..101a33f 100644 (file)
@@ -39,7 +39,7 @@ class SpecialFilepath extends SpecialPage {
                $request = $this->getRequest();
                $file = !is_null( $par ) ? $par : $request->getText( 'file' );
 
-               $title = Title::makeTitleSafe( NS_FILE, $file );
+               $title = Title::newFromText( $file, NS_FILE );
 
                if ( ! $title instanceof Title || $title->getNamespace() != NS_FILE ) {
                        $this->showForm( $title );
index b681d9d..6282357 100644 (file)
@@ -4503,9 +4503,7 @@ You should have received [{{SERVER}}{{SCRIPTPATH}}/COPYING a copy of the GNU Gen
 'filepath-page'    => 'File:',
 'filepath-submit'  => 'Go',
 'filepath-summary' => 'This special page returns the complete path for a file.
-Images are shown in full resolution, other file types are started with their associated program directly.
-
-Enter the file name without the "{{ns:file}}:" prefix.',
+Images are shown in full resolution, other file types are started with their associated program directly.',
 
 # Special:FileDuplicateSearch
 'fileduplicatesearch'           => 'Search for duplicate files',