From 6248715474212149251b63ba79cdd50bc5f8f3c2 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 14 Jun 2004 08:37:40 +0000 Subject: [PATCH] Fix bug #972025 : stop considering article name starting by "Media" as medias, instead consider only those starting by "Media:". --- includes/Skin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index bc460590f5..5fb9a13e74 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2491,11 +2491,12 @@ class Skin { # is ignored while(preg_match('/\[\[(.*?)(\|(.*?))*\]\]/',$comment,$match)) { - $medians = $wgLang->getNsText(Namespace::getMedia()); + $medians = $wgLang->getNsText(Namespace::getMedia()).':'; $func='makeLink'; if(preg_match('/^'.$medians.'/i',$match[1])) { $func='makeMediaLink'; } + # Handle link renaming [[foo|text]] will show link as "text" if(isset($match[3]) ) { $comment= preg_replace('/\[\[(.*?)\]\]/', -- 2.20.1