this still appears to be broken, but I think it was broken before this code existed as well.
$found = false;
$nowiki = false;
$noparse = false;
+ $brokenlink = false;
$title = NULL;
if ( $this->mOutputType == OT_HTML && !$found ) {
$text = '[['.$title->getPrefixedText().']]';
$found = true;
+ $brokenlink = true;
}
# Template cache array insertion
} else {
# replace ==section headers==
# XXX this needs to go away once we have a better parser.
- if ( $this->mOutputType != OT_WIKI ) {
+ if ( $this->mOutputType != OT_WIKI && !$brokenlink ) {
if( !is_null( $title ) )
$encodedname = base64_encode($title->getPrefixedDBkey());
else