* move the addition of common/diffs.css from showDiffPage() to showDiff() which catches most 'legit' cases
* hack it in to a couple of uses where getDiff() is used and manually spit out
* hack around the hacked-up custom diff table in Oversight... that should be refactored in the base class
return;
}
- $wgOut->addStyle( 'common/diff.css' );
$wgOut->setArticleFlag( false );
if ( ! $this->loadRevisionData() ) {
$t = $this->mTitle->getPrefixedText() . " (Diff: {$this->mOldid}, {$this->mNewid})";
$wgOut->addWikitext( wfMsg( 'missingarticle', "<nowiki>(fixme, bug)</nowiki>" ) );
return false;
} else {
+ $wgOut->addStyle( 'common/diff.css' );
$wgOut->addHTML( $diff );
return true;
}
}
if ( 'diff' == $this->formtype ) {
+ $wgOut->addStyle( 'common/diff.css' );
$wgOut->addHTML( $this->getDiff() );
}
}
}
if ( $this->formtype == 'diff') {
+ $wgOut->addStyle( 'common/diff.css' );
$wgOut->addHTML( $this->getDiff() );
}