From 1a64373861bc6f464cfe76cea7a9cfa5f120f92a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 5 Jun 2007 19:06:32 +0000 Subject: [PATCH] * Fix minor regression in media links to images that don't exist yet -- use dbkey form (with _ instead of space) when passing wpDestFile parameter. This matches previous behavior and avoids a warning on upload when the name is normalized. Fixes another parser test case regression. --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 0ab798d30f..548505c555 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -684,7 +684,7 @@ class Linker { $class = 'internal'; } else { $upload = SpecialPage::getTitleFor( 'Upload' ); - $url = $upload->getLocalUrl( 'wpDestFile=' . urlencode( $title->getText() ) ); + $url = $upload->getLocalUrl( 'wpDestFile=' . urlencode( $title->getDbKey() ) ); $class = 'new'; } $alt = htmlspecialchars( $title->getText() ); -- 2.20.1