From 2334b27a95874c868d6fdfeb5b0383f20615f42d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 9 Oct 2005 20:23:46 +0000 Subject: [PATCH] * the linkTrail language function should be used to get the linktrail --- includes/Linker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index 044e2a890c..84e1bdaefd 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -584,7 +584,7 @@ class Linker { } /** @todo document */ - function makeMediaLink( $name, $url, $alt = '' ) { + function makeMediaLink( $name, /* wtf?! */ $url, $alt = '' ) { $nt = Title::makeTitleSafe( NS_IMAGE, $name ); return $this->makeMediaLinkObj( $nt, $alt ); } @@ -716,7 +716,7 @@ class Linker { $thelink = $this->makeMediaLink( $submatch[1], "", $text ); } else { # Other kind of link - if( preg_match( wfMsgForContent( "linktrail" ), $match[4], $submatch ) ) { + if( preg_match( $wgContLang->linkTrail(), $match[4], $submatch ) ) { $trail = $submatch[1]; } else { $trail = ""; -- 2.20.1