* the linkTrail language function should be used to get the linktrail
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 9 Oct 2005 20:23:46 +0000 (20:23 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 9 Oct 2005 20:23:46 +0000 (20:23 +0000)
includes/Linker.php

index 044e2a8..84e1bda 100644 (file)
@@ -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 = "";