aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache/service.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-08-06 15:10:20 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-08-06 15:10:20 -0500
commit1b126908c633fa793cf7f3fba1e88139bb599938 (patch)
treedfc7657fb18f90077c68c75f394064a88b9cf4af /phpBB/includes/cache/service.php
parent907f1771f9594ee1906c5b0ad7fac765f2a1995d (diff)
downloadforums-1b126908c633fa793cf7f3fba1e88139bb599938.tar
forums-1b126908c633fa793cf7f3fba1e88139bb599938.tar.gz
forums-1b126908c633fa793cf7f3fba1e88139bb599938.tar.bz2
forums-1b126908c633fa793cf7f3fba1e88139bb599938.tar.xz
forums-1b126908c633fa793cf7f3fba1e88139bb599938.zip
[ticket/11029] Remove $reparse variable
Its only set to false, then true in one case, and only checked once. So remove it because it is unnecessary. PHPBB3-11029
Diffstat (limited to 'phpBB/includes/cache/service.php')
-rw-r--r--phpBB/includes/cache/service.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/phpBB/includes/cache/service.php b/phpBB/includes/cache/service.php
index b29af3c531..e63ec6e33a 100644
--- a/phpBB/includes/cache/service.php
+++ b/phpBB/includes/cache/service.php
@@ -332,7 +332,6 @@ class phpbb_cache_service
$parsed_array = array();
}
- $reparse = false;
$filename = $phpbb_root_path . 'styles/' . $style['style_path'] . '/style.cfg';
if (!file_exists($filename))
@@ -342,17 +341,13 @@ class phpbb_cache_service
if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
{
- $reparse = true;
- }
-
- // Re-parse cfg file
- if ($reparse)
- {
+ // Re-parse cfg file
$parsed_array = parse_cfg_file($filename);
$parsed_array['filetime'] = @filemtime($filename);
$this->driver->put('_cfg_' . $style['style_path'], $parsed_array);
}
+
return $parsed_array;
}