* (bug 3210) Fix Media: links with remote image URL path
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 21 Aug 2005 00:38:05 +0000 (00:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 21 Aug 2005 00:38:05 +0000 (00:38 +0000)
Someone changed how the noparse links handling worked without updating all uses.

RELEASE-NOTES
includes/Linker.php

index a4ce819..7df49d4 100644 (file)
@@ -39,7 +39,7 @@ Misc work going on.....
 * (bug 3204) Fix typo breaking special pages in fy localization
 * Oracle support
 * Edit conflict on recreation of deleted page
-
+* (bug 3210) Fix Media: links with remote image URL path
 
 
 === Caveats ===
index 322a517..54daa1a 100644 (file)
@@ -611,7 +611,7 @@ class Linker {
                        if( $img->exists() ) {
                                $url  = $img->getURL();
                                if( $nourl ) {
-                                       $url = str_replace( "http://", "http-noparse://", $url );
+                                       $url = str_replace( "http://", UNIQ_PREFIX . "NOPARSEhttp://", $url );
                                }
                                $class = 'internal';
                        } else {