From af738dbc2a48713f59779410955282aa5760b741 Mon Sep 17 00:00:00 2001 From: David M Date: Fri, 4 Jan 2008 18:35:49 +0000 Subject: Ch-ch-ch-changes - Made us more DB independent by making many queries capability based instead of DB specific - Finished PHP5ifying of the acm_file class, now with some (hopefully) enhancements to its performance - Sped up viewforum considerably (also goes towards mcp_forum) I really hope I didn't explode CVS... git-svn-id: file:///svn/phpbb/trunk@8301 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/style.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'phpBB/style.php') diff --git a/phpBB/style.php b/phpBB/style.php index 37e396bb29..7dfd3886ff 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -140,7 +140,7 @@ if ($id) } // Expire time of seven days if not recached - $expire_time = 7*86400; + $expire_time = 7 * 86400; $recache = false; // Re-cache stylesheet data if necessary @@ -177,7 +177,10 @@ if ($id) if ($recache) { - include_once($phpbb_root_path . 'includes/acp/acp_styles.' . $phpEx); + if (!class_exists('acp_styles')) + { + include($phpbb_root_path . 'includes/acp/acp_styles.' . $phpEx); + } $theme['theme_data'] = acp_styles::db_theme_data($theme); $theme['theme_mtime'] = $update_time; -- cgit v1.2.1