X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FPreprocessor.php;h=49e961aec3ebca7ca7ecc685993a82c2d32625af;hb=c3a1bff5a9324deb443b4acedd688c4b97f540aa;hp=24474d5795d478b885681080be9d76f4fb3f96ca;hpb=3458091bfe2c9602a4ee62724626a884d7e090bf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/Preprocessor.php b/includes/parser/Preprocessor.php index 24474d5795..49e961aec3 100644 --- a/includes/parser/Preprocessor.php +++ b/includes/parser/Preprocessor.php @@ -62,6 +62,7 @@ abstract class Preprocessor { * * @param string $text * @param int $flags + * @param string $tree */ protected function cacheSetTree( $text, $flags, $tree ) { $config = RequestContext::getMain()->getConfig(); @@ -69,7 +70,7 @@ abstract class Preprocessor { $length = strlen( $text ); $threshold = $config->get( 'PreprocessorCacheThreshold' ); if ( $threshold === false || $length < $threshold || $length > 1e6 ) { - return false; + return; } $cache = ObjectCache::getLocalClusterInstance();