Have Linker::getLinkColour() accept LinkTarget objects
[lhc/web/wiklou.git] / includes / linker / LinkRenderer.php
index 1237907..432dcb2 100644 (file)
@@ -276,8 +276,7 @@ class LinkRenderer {
                if ( $target->isExternal() ) {
                        $classes[] = 'extiw';
                }
-               $title = Title::newFromLinkTarget( $target );
-               $colour = Linker::getLinkColour( $title, $this->stubThreshold );
+               $colour = Linker::getLinkColour( $target, $this->stubThreshold );
                if ( $colour !== '' ) {
                        $classes[] = $colour;
                }