* otherwise the cache won't get updated properly. See LINKCACHE.DOC.
*/
function makeLink( $title, $text = '', $query = '', $trail = '' ) {
- wfProfileIn( 'Skin::makeLink' );
+ wfProfileIn( 'Linker::makeLink' );
$nt = Title::newFromText( $title );
if ($nt) {
$result = $this->makeLinkObj( Title::newFromText( $title ), $text, $query, $trail );
} else {
- wfDebug( 'Invalid title passed to Skin::makeLink(): "'.$title."\"\n" );
+ wfDebug( 'Invalid title passed to Linker::makeLink(): "'.$title."\"\n" );
$result = $text == "" ? $title : $text;
}
- wfProfileOut( 'Skin::makeLink' );
+ wfProfileOut( 'Linker::makeLink' );
return $result;
}
if ($nt) {
return $this->makeKnownLinkObj( Title::newFromText( $title ), $text, $query, $trail, $prefix , $aprops );
} else {
- wfDebug( 'Invalid title passed to Skin::makeKnownLink(): "'.$title."\"\n" );
+ wfDebug( 'Invalid title passed to Linker::makeKnownLink(): "'.$title."\"\n" );
return $text == '' ? $title : $text;
}
}
if ($nt) {
return $this->makeBrokenLinkObj( Title::newFromText( $title ), $text, $query, $trail );
} else {
- wfDebug( 'Invalid title passed to Skin::makeBrokenLink(): "'.$title."\"\n" );
+ wfDebug( 'Invalid title passed to Linker::makeBrokenLink(): "'.$title."\"\n" );
return $text == '' ? $title : $text;
}
}
if ($nt) {
return $this->makeStubLinkObj( Title::newFromText( $title ), $text, $query, $trail );
} else {
- wfDebug( 'Invalid title passed to Skin::makeStubLink(): "'.$title."\"\n" );
+ wfDebug( 'Invalid title passed to Linker::makeStubLink(): "'.$title."\"\n" );
return $text == '' ? $title : $text;
}
}
*/
function makeLinkObj( &$nt, $text= '', $query = '', $trail = '', $prefix = '' ) {
global $wgOut, $wgUser, $wgInputEncoding;
- $fname = 'Skin::makeLinkObj';
+ $fname = 'Linker::makeLinkObj';
wfProfileIn( $fname );
# Fail gracefully
$t = "<a href=\"{$u}\"{$style}>{$text}{$inside}</a>";
+ wfProfileOut( $fname );
return $t;
} elseif ( $nt->isAlwaysKnown() ) {
# Image links, special page links and self-links with fragements are always known.
function makeKnownLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' , $aprops = '' ) {
global $wgOut, $wgTitle, $wgInputEncoding;
- $fname = 'Skin::makeKnownLinkObj';
+ $fname = 'Linker::makeKnownLinkObj';
wfProfileIn( $fname );
if ( !is_object( $nt ) ) {
return "<!-- ERROR -->{$prefix}{$text}{$trail}";
}
- $fname = 'Skin::makeBrokenLinkObj';
+ $fname = 'Linker::makeBrokenLinkObj';
wfProfileIn( $fname );
if ( '' == $query ) {
return "<!-- ERROR -->{$prefix}{$text}{$trail}";
}
- $fname = 'Skin::makeBrokenImageLinkObj';
+ $fname = 'Linker::makeBrokenImageLinkObj';
wfProfileIn( $fname );
$q = 'wpDestFile=' . urlencode( $nt->getDBkey() );
* temporarily to a value pass. Should be adjusted further. --brion
*/
function formatComment($comment, $title = NULL) {
- $fname = 'Skin::formatComment';
+ $fname = 'Linker::formatComment';
wfProfileIn( $fname );
global $wgContLang;