*/
public function showDiffStyle() {
if ( !$this->isSlotDiffRenderer ) {
- $this->getOutput()->addModuleStyles( 'mediawiki.diff.styles' );
+ $this->getOutput()->addModuleStyles( [
+ 'mediawiki.interface.helpers.styles',
+ 'mediawiki.diff.styles'
+ ] );
foreach ( $this->getSlotDiffRenderers() as $slotDiffRenderer ) {
$slotDiffRenderer->addModules( $this->getOutput() );
}
// Try cache
if ( !$this->mRefreshCache ) {
$difftext = $cache->get( $key );
- if ( $difftext ) {
+ if ( is_string( $difftext ) ) {
wfIncrStats( 'diff_cache.hit' );
$difftext = $this->localiseDiff( $difftext );
$difftext .= "\n<!-- diff cache key $key -->\n";