aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php24
1 files changed, 13 insertions, 11 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 6d5c404121..5ccd044545 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1348,8 +1348,10 @@ function page_header($page_title = '')
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,
'T_THEME_PATH' => 'styles/' . $user->theme['primary']['theme_path'] . '/theme/',
- 'T_STYLESHEET_LINK' => (!$user->theme['primary']['css_storedb']) ? 'styles/' . $user->theme['primary']['theme_path'] . '/theme/stylesheet.css' : "style.$phpEx?sid=$user->session_id&id=" . $user->theme['primary']['theme_id'],
- 'T_THEME_DATA' => (!$user->theme['primary']['css_storedb']) ? '' : $user->theme['primary']['css_data'])
+ 'T_TEMPLATE_PATH' => 'styles/' . $user->theme['primary']['template_path'] . 'template/',
+ 'T_IMAGESET_PATH' => 'styles/' . $user->theme['primary']['imageset_path'] . 'imageset/',
+ 'T_STYLESHEET_LINK' => (!$user->theme['primary']['theme_storedb']) ? 'styles/' . $user->theme['primary']['theme_path'] . '/theme/stylesheet.css' : "style.$phpEx?sid=$user->session_id&id=" . $user->theme['primary']['theme_id'],
+ 'T_THEME_DATA' => (!$user->theme['primary']['theme_storedb']) ? '' : $user->theme['primary']['theme_data'])
);
if (!empty($config['send_encoding']))
@@ -1368,15 +1370,6 @@ function page_footer()
{
global $db, $config, $template, $SID, $user, $auth, $cache, $starttime, $phpEx;
- // Close our DB connection.
- $db->sql_close();
-
- // Unload cache
- if (!empty($cache))
- {
- $cache->unload();
- }
-
// Output page creation time
if (defined('DEBUG'))
{
@@ -1407,6 +1400,15 @@ function page_footer()
);
$template->display('body');
+
+ // Close our DB connection.
+ $db->sql_close();
+
+ // Unload cache
+ if (!empty($cache))
+ {
+ $cache->unload();
+ }
exit;
}