aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-07-13 21:39:36 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-07-13 21:39:36 +0000
commite1441b9fbe515a652c1525cd1a315ad67f3477b8 (patch)
tree5a3e4bcd3c4b6f3c1188401bda2c0e12d9e21bdd /phpBB/includes/functions.php
parent7222465d75bcb0a939642be1b24e6fd5627e0103 (diff)
downloadforums-e1441b9fbe515a652c1525cd1a315ad67f3477b8.tar
forums-e1441b9fbe515a652c1525cd1a315ad67f3477b8.tar.gz
forums-e1441b9fbe515a652c1525cd1a315ad67f3477b8.tar.bz2
forums-e1441b9fbe515a652c1525cd1a315ad67f3477b8.tar.xz
forums-e1441b9fbe515a652c1525cd1a315ad67f3477b8.zip
Update data for styling schema changes
git-svn-id: file:///svn/phpbb/trunk@4249 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php7
1 files 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']))