$trail = $m[3];
} else { # Invalid form; output directly
$s .= $prefix . "[[" . $line ;
- wfProfileOut( $fname );
continue;
}
$nt = Title::newFromText( $link );
if( !$nt ) {
$s .= $prefix . "[[" . $line;
- wfProfileOut( $fname );
continue;
}
$ns = $nt->getNamespace();
if( $iw && $this->mOptions->getInterwikiMagic() && $nottalk && $wgLang->getLanguageName( $iw ) ) {
array_push( $this->mOutput->mLanguageLinks, $nt->getPrefixedText() );
$tmp = $prefix . $trail ;
- wfProfileOut( $fname );
$s .= (trim($tmp) == '')? '': $tmp;
continue;
}
if ( $ns == $image ) {
$s .= $prefix . $sk->makeImageLinkObj( $nt, $text ) . $trail;
$wgLinkCache->addImageLinkObj( $nt );
- wfProfileOut( $fname );
continue;
}
if ( $ns == $category ) {
$wgLinkCache->addCategoryLinkObj( $nt, $sortkey );
$this->mOutput->mCategoryLinks[] = $t ;
$s .= $prefix . $trail ;
- wfProfileOut( $fname );
continue;
}
}
( strpos( $link, "#" ) == FALSE ) ) {
# Self-links are handled specially; generally de-link and change to bold.
$s .= $prefix . $sk->makeSelfLinkObj( $nt, $text, "", $trail );
- wfProfileOut( $fname );
continue;
}
if( $ns == $media ) {
$s .= $prefix . $sk->makeMediaLinkObj( $nt, $text ) . $trail;
$wgLinkCache->addImageLinkObj( $nt );
- wfProfileOut( $fname );
- continue;
+ continue;
} elseif( $ns == $special ) {
$s .= $prefix . $sk->makeKnownLinkObj( $nt, $text, "", $trail );
- wfProfileOut( $fname );
continue;
}
$s .= $sk->makeLinkObj( $nt, $text, "", $trail, $prefix );