From f2aea5a725bcfce01f6ff7cbc65b256d17886cfc Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 10 May 2007 14:12:08 +0000 Subject: [PATCH] also recache if theme_data is empty. git-svn-id: file:///svn/phpbb/trunk@7523 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/style.php | 8 ++++---- 1 file 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'];