aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser/Preprocessor.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2017-09-09 22:54:39 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2017-09-09 22:54:39 +0200
commitc58b2afc9f02817d567e641c3f975c10bd8d945a (patch)
treeef9da6e80852cf13df785676e42da5c93be9eaf3 /includes/parser/Preprocessor.php
parentbb61c94bc19026b68df57e02eb48f45a417b14c2 (diff)
downloadmediawikicore-c58b2afc9f02817d567e641c3f975c10bd8d945a.tar.gz
mediawikicore-c58b2afc9f02817d567e641c3f975c10bd8d945a.zip
Fix return in Preprocessor::cacheSetTree
Function would not return always a bool, caller does not expected a value, so remove it. Change-Id: I506355fbd1bd304a6f3a161ac4c9d0bc765fda4a
Diffstat (limited to 'includes/parser/Preprocessor.php')
-rw-r--r--includes/parser/Preprocessor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/parser/Preprocessor.php b/includes/parser/Preprocessor.php
index 24474d5795d4..03726ca8e54f 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();