http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97558

Revision: 97558
Author:   brion
Date:     2011-09-19 21:16:00 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
* (bug 30977) Remove directions cruft, undo random limitation of input format 
for Special:Filepath

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.

Modified Paths:
--------------
    trunk/phase3/includes/specials/SpecialFilepath.php
    trunk/phase3/languages/messages/MessagesEn.php

Modified: trunk/phase3/includes/specials/SpecialFilepath.php
===================================================================
--- trunk/phase3/includes/specials/SpecialFilepath.php  2011-09-19 21:00:35 UTC 
(rev 97557)
+++ trunk/phase3/includes/specials/SpecialFilepath.php  2011-09-19 21:16:00 UTC 
(rev 97558)
@@ -39,7 +39,7 @@
                $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 );

Modified: trunk/phase3/languages/messages/MessagesEn.php
===================================================================
--- trunk/phase3/languages/messages/MessagesEn.php      2011-09-19 21:00:35 UTC 
(rev 97557)
+++ trunk/phase3/languages/messages/MessagesEn.php      2011-09-19 21:16:00 UTC 
(rev 97558)
@@ -4503,10 +4503,8 @@
 '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.
+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.',
-
 # Special:FileDuplicateSearch
 'fileduplicatesearch'           => 'Search for duplicate files',
 'fileduplicatesearch-summary'   => 'Search for duplicate files based on hash 
values.',


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to