mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[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
This commit is contained in:
9
phpBB/includes/cache/service.php
vendored
9
phpBB/includes/cache/service.php
vendored
@@ -332,7 +332,6 @@ class phpbb_cache_service
|
|||||||
$parsed_array = array();
|
$parsed_array = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$reparse = false;
|
|
||||||
$filename = $phpbb_root_path . 'styles/' . $style['style_path'] . '/style.cfg';
|
$filename = $phpbb_root_path . 'styles/' . $style['style_path'] . '/style.cfg';
|
||||||
|
|
||||||
if (!file_exists($filename))
|
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'])))
|
if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
|
||||||
{
|
{
|
||||||
$reparse = true;
|
// Re-parse cfg file
|
||||||
}
|
|
||||||
|
|
||||||
// Re-parse cfg file
|
|
||||||
if ($reparse)
|
|
||||||
{
|
|
||||||
$parsed_array = parse_cfg_file($filename);
|
$parsed_array = parse_cfg_file($filename);
|
||||||
$parsed_array['filetime'] = @filemtime($filename);
|
$parsed_array['filetime'] = @filemtime($filename);
|
||||||
|
|
||||||
$this->driver->put('_cfg_' . $style['style_path'], $parsed_array);
|
$this->driver->put('_cfg_' . $style['style_path'], $parsed_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $parsed_array;
|
return $parsed_array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user