From: Umherirrender Date: Sat, 9 Sep 2017 20:54:39 +0000 (+0200) Subject: Fix return in Preprocessor::cacheSetTree X-Git-Tag: 1.31.0-rc.0~2079^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=c58b2afc9f02817d567e641c3f975c10bd8d945a;p=lhc%2Fweb%2Fwiklou.git Fix return in Preprocessor::cacheSetTree Function would not return always a bool, caller does not expected a value, so remove it. Change-Id: I506355fbd1bd304a6f3a161ac4c9d0bc765fda4a --- diff --git a/includes/parser/Preprocessor.php b/includes/parser/Preprocessor.php index 24474d5795..03726ca8e5 100644 --- a/includes/parser/Preprocessor.php +++ b/includes/parser/Preprocessor.php @@ -69,7 +69,7 @@ abstract class Preprocessor { $length = strlen( $text ); $threshold = $config->get( 'PreprocessorCacheThreshold' ); if ( $threshold === false || $length < $threshold || $length > 1e6 ) { - return false; + return; } $cache = ObjectCache::getLocalClusterInstance();