From e1441b9fbe515a652c1525cd1a315ad67f3477b8 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 13 Jul 2003 21:39:36 +0000 Subject: [PATCH] Update data for styling schema changes git-svn-id: file:///svn/phpbb/trunk@4249 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 6e3a60c0b5..a6be30a4e9 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -323,7 +323,8 @@ function style_select($default = '') global $db; $sql = 'SELECT style_id, style_name - FROM ' . STYLES_TABLE . ' + FROM ' . STYLES_TABLE . ' + WHERE style_active = 1 ORDER BY style_name'; $result = $db->sql_query($sql); @@ -1350,8 +1351,8 @@ function page_header($page_title = '') 'S_DISPLAY_PM' => (empty($config['privmsg_disable'])) ? 1 : 0, 'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0, - 'T_THEME_PATH' => 'styles/themes/' . $user->theme['primary']['theme_name'], - 'T_STYLESHEET_LINK' => 'styles/themes/' . $user->theme['primary']['css_external']) + 'T_THEME_PATH' => 'styles/themes/' . $user->theme['primary']['theme_path'], + 'T_STYLESHEET_LINK' => 'styles/themes/' . $user->theme['primary']['theme_path'] . '/' . $user->theme['primary']['theme_name'] . '.css') ); if (!empty($config['send_encoding']))