return false;
}
- if ( $mode === self::MODE_NORMAL ) {
- if ( $user->getNewtalk() ) {
- return false;
- }
+ if ( ( $mode === self::MODE_NORMAL ) && $user->getNewtalk() ) {
+ return false;
}
// Allow extensions to disable caching
}
// gzip output to buffer as needed and set headers...
- if ( $this->useGzip() ) {
- // @todo Ugly wfClientAcceptsGzip() function - use context!
- if ( wfClientAcceptsGzip() ) {
- header( 'Content-Encoding: gzip' );
+ // @todo Ugly wfClientAcceptsGzip() function - use context!
+ if ( $this->useGzip() && wfClientAcceptsGzip() ) {
+ header( 'Content-Encoding: gzip' );
- return $compressed;
- } else {
- return $text;
- }
- } else {
- return $text;
+ return $compressed;
}
+
+ return $text;
}
/**