From: Brion Vibber Date: Tue, 5 Jun 2007 19:06:32 +0000 (+0000) Subject: * Fix minor regression in media links to images that don't exist yet -- use dbkey... X-Git-Tag: 1.31.0-rc.0~52651 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=1a64373861bc6f464cfe76cea7a9cfa5f120f92a;p=lhc%2Fweb%2Fwiklou.git * 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. --- 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() );