mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 23:21:33 +02:00
also recache if theme_data is empty.
git-svn-id: file:///svn/phpbb/trunk@7523 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -115,18 +115,18 @@ if ($id && $sid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Re-cache stylesheet data if necessary
|
// Re-cache stylesheet data if necessary
|
||||||
if ($config['load_tplcompile'])
|
if ($config['load_tplcompile'] || empty($theme['theme_data']))
|
||||||
{
|
{
|
||||||
$recache = false;
|
$recache = (empty($theme['theme_data'])) ? true : false;
|
||||||
$update_time = time();
|
$update_time = time();
|
||||||
|
|
||||||
// We test for stylesheet.css because it is faster and most likely the only file changed on common themes
|
// We test for stylesheet.css because it is faster and most likely the only file changed on common themes
|
||||||
if ($theme['theme_mtime'] < @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css'))
|
if (!$recache && $theme['theme_mtime'] < @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css'))
|
||||||
{
|
{
|
||||||
$recache = true;
|
$recache = true;
|
||||||
$update_time = @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css');
|
$update_time = @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css');
|
||||||
}
|
}
|
||||||
else
|
else if (!$recache)
|
||||||
{
|
{
|
||||||
$last_change = $theme['theme_mtime'];
|
$last_change = $theme['theme_mtime'];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user