X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fcache%2FFileCacheBase.php;h=6d5f8c3e55a5c08a59c4c5e8e441f7eb08ed43af;hb=d67197fa116acc366419faedeeacd91158a98f8b;hp=360420b615b7f1cdf1726b8f711eacd98a9a2fc0;hpb=6343ba575f7d98423f5d56bca477f4a149ce4721;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 ); }