From bec6c9c92109e153ff586b7af7899788f97bf0a4 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 21 Aug 2005 00:38:05 +0000 Subject: [PATCH] * (bug 3210) Fix Media: links with remote image URL path Someone changed how the noparse links handling worked without updating all uses. --- RELEASE-NOTES | 2 +- includes/Linker.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a4ce819e93..7df49d4227 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Linker.php b/includes/Linker.php index 322a5177ff..54daa1a6ff 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 { -- 2.20.1