Fix regression from r22867
authorRob Church <robchurch@users.mediawiki.org>
Tue, 12 Jun 2007 23:10:12 +0000 (23:10 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 12 Jun 2007 23:10:12 +0000 (23:10 +0000)
includes/Linker.php

index af771b7..a3237be 100644 (file)
@@ -644,7 +644,7 @@ class Linker {
                                $upload = SpecialPage::getTitleFor( 'Upload' );
                                if( $text == '' )
                                        $text = htmlspecialchars( $title->getPrefixedText() );
-                               $q = 'wpDestFile=' . $title->getPrefixedUrl();
+                               $q = 'wpDestFile=' . $title->getPartialUrl();
                                if( $query != '' )
                                        $q .= '&' . $query;
                                list( $inside, $trail ) = self::splitTrail( $trail );