From 7e0a31a4d4075728c21b3efc0509001b3fc2f608 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Wed, 5 Jan 2011 06:16:13 +0000 Subject: [PATCH] Allow filenames to be specified in a with the File:, Image: or media: omitted by defaulting to NS_FILE. --- includes/parser/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 3061a2d6f1..0ef79c9a4b 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4526,7 +4526,7 @@ class Parser { if ( strpos( $matches[0], '%' ) !== false ) { $matches[1] = rawurldecode( $matches[1] ); } - $tp = Title::newFromText( $matches[1] ); + $tp = Title::newFromText( $matches[1], NS_FILE ); $nt =& $tp; if ( is_null( $nt ) ) { # Bogus title. Ignore these so we don't bomb out later. -- 2.20.1