aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/style.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-10 14:12:08 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-10 14:12:08 +0000
commitf2aea5a725bcfce01f6ff7cbc65b256d17886cfc (patch)
tree4c43d76d8df9a1fa648659d3b35aa8408eafb710 /phpBB/style.php
parentca770c97fe4fa2d525980444dc0c2bcca8939691 (diff)
downloadforums-f2aea5a725bcfce01f6ff7cbc65b256d17886cfc.tar
forums-f2aea5a725bcfce01f6ff7cbc65b256d17886cfc.tar.gz
forums-f2aea5a725bcfce01f6ff7cbc65b256d17886cfc.tar.bz2
forums-f2aea5a725bcfce01f6ff7cbc65b256d17886cfc.tar.xz
forums-f2aea5a725bcfce01f6ff7cbc65b256d17886cfc.zip
also recache if theme_data is empty.
git-svn-id: file:///svn/phpbb/trunk@7523 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/style.php')
-rw-r--r--phpBB/style.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/style.php b/phpBB/style.php
index f224df9f30..a5a3b44778 100644
--- a/phpBB/style.php
+++ b/phpBB/style.php
@@ -115,18 +115,18 @@ if ($id && $sid)
}
// 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();
// 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;
$update_time = @filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css');
}
- else
+ else if (!$recache)
{
$last_change = $theme['theme_mtime'];