From 7bab72edeb4e10699189886bbb507f96a43d5473 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 19 Sep 2011 21:16:00 +0000 Subject: [PATCH] * (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. --- includes/specials/SpecialFilepath.php | 2 +- languages/messages/MessagesEn.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialFilepath.php b/includes/specials/SpecialFilepath.php index 3effa52044..101a33f4d1 100644 --- a/includes/specials/SpecialFilepath.php +++ b/includes/specials/SpecialFilepath.php @@ -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 ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index b681d9d803..6282357e66 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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', -- 2.20.1