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;
}