return $ret;
}
- # Parse <tmp=> link placeholders to avoid using linkcache
+ # Parse <!--LINK--> link placeholders to avoid using linkcache
# Placeholders created in Skin::makeLinkObj()
function parseLinkHolders()
{
wfProfileIn( $fname );
# Get placeholders from body
- preg_match_all( "/<tmp=(.*?) (.*?) (.*?) (.*?)>/", $this->mBodytext, $tmpLinks );
+ preg_match_all( "/<!--LINK (.*?) (.*?) (.*?) (.*?)-->/", $this->mBodytext, $tmpLinks );
if ( !empty( $tmpLinks[0] ) ) {
$dbr =& wfGetDB( DB_SLAVE );
}
# Allows wiki to bypass using linkcache, see OutputPage::parseLinkHolders()
- $retVal = "<tmp=" . implode( ' ', array( $nt->getNamespace(), $nt->getDBkey(),
- $query, $prefix . $text . $inside ) ) . ">{$trail}";
+ $retVal = '<!--LINK ' . implode( ' ', array( $nt->getNamespace(), $nt->getDBkey(),
+ $query, $prefix . $text . $inside ) ) . "-->{$trail}";
} else {
# Work out link colour immediately
$aid = $nt->getArticleID() ;