From 57645ad5bc2469e166cb3e5d54628d87ffa74c42 Mon Sep 17 00:00:00 2001 From: David M Date: Sun, 6 Jan 2008 02:21:44 +0000 Subject: the end of an era... - MySQL < 4.1.3 support is removed - renamed mysql4 to mysql, no need to cause confusion - changed the cfg cacher, reduces file system lookups and include count by two on every page load git-svn-id: file:///svn/phpbb/trunk@8307 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/session.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'phpBB/includes/session.php') diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 573cbdd2c6..1f62abc93d 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -1402,11 +1402,9 @@ class user extends session trigger_error('Could not get style data', E_USER_ERROR); } - // Now parse the cfg file and cache it - $parsed_items = cache::obtain_cfg_items($this->theme); - - // We are only interested in the theme configuration for now - $parsed_items = $parsed_items['theme']; + // Now parse the cfg file and cache it, + // we are only interested in the theme configuration for now + $parsed_items = cache::obtain_cfg_item($this->theme, 'theme'); $check_for = array( 'parse_css_file' => (int) 0, -- cgit v1.2.1