* @return array
*/
protected static function cacheablePageActions() {
- return array( 'view', 'history' );
+ return [ 'view', 'history' ];
}
/**
* @return bool
*/
public static function useFileCache( IContextSource $context ) {
- global $wgUseFileCache, $wgShowIPinHeader, $wgDebugToolbar, $wgContLang;
+ global $wgUseFileCache, $wgDebugToolbar, $wgContLang;
if ( !$wgUseFileCache ) {
return false;
}
- if ( $wgShowIPinHeader || $wgDebugToolbar ) {
- wfDebug( "HTML file cache skipped. Either \$wgShowIPinHeader and/or \$wgDebugToolbar on\n" );
+ if ( $wgDebugToolbar ) {
+ wfDebug( "HTML file cache skipped. \$wgDebugToolbar on\n" );
return false;
}
return false;
}
// Allow extensions to disable caching
- return Hooks::run( 'HTMLFileCache::useFileCache', array( $context ) );
+ return Hooks::run( 'HTMLFileCache::useFileCache', [ $context ] );
}
/**
return $text;
}
- wfDebug( __METHOD__ . "()\n", 'log' );
+ wfDebug( __METHOD__ . "()\n", 'private' );
$now = wfTimestampNow();
if ( $this->useGzip() ) {