X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FFileCacheBase.php;h=6d5f8c3e55a5c08a59c4c5e8e441f7eb08ed43af;hb=8bb5a6c461c31ee5ce6874548246fc2c520686f6;hp=360420b615b7f1cdf1726b8f711eacd98a9a2fc0;hpb=4618f70793d1178ca4c646ef397cf17b1cc70b44;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/FileCacheBase.php b/includes/cache/FileCacheBase.php index 360420b615..6d5f8c3e55 100644 --- a/includes/cache/FileCacheBase.php +++ b/includes/cache/FileCacheBase.php @@ -154,15 +154,9 @@ abstract class FileCacheBase { /** * Save and compress text to the cache * @param string $text - * @return string Compressed text + * @return string|false Compressed text */ public function saveText( $text ) { - global $wgUseFileCache; - - if ( !$wgUseFileCache ) { - return false; - } - if ( $this->useGzip() ) { $text = gzencode( $text ); }