mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00: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:
parent
ca770c97fe
commit
f2aea5a725
1 changed files with 4 additions and 4 deletions
|
@ -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'];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue