Send DB stored css data to template if necessary ... yes, I realise this won't be cached like a normal stylesheet but there are potential ways around that

git-svn-id: file:///svn/phpbb/trunk@4303 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-07-21 00:44:22 +00:00
parent 2ca95fed52
commit b3d94f5c9a

View file

@ -978,11 +978,6 @@ function login_forum_box(&$forum_data)
{ {
global $db, $config, $user, $template, $phpEx; global $db, $config, $user, $template, $phpEx;
//TODO
if ($forum_data['parent_id'])
{
}
$sql = 'SELECT * $sql = 'SELECT *
FROM phpbb_forum_access FROM phpbb_forum_access
WHERE forum_id = ' . $forum_data['forum_id'] . ' WHERE forum_id = ' . $forum_data['forum_id'] . '
@ -1353,7 +1348,8 @@ function page_header($page_title = '')
'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0, 'S_DISPLAY_MEMBERLIST' => (isset($auth)) ? $auth->acl_get('u_viewprofile') : 0,
'T_THEME_PATH' => 'styles/themes/' . $user->theme['primary']['theme_path'], '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') 'T_STYLESHEET_LINK' => (!$user->theme['primary']['css_storedb']) ? 'styles/themes/' . $user->theme['primary']['theme_path'] . '/' . $user->theme['primary']['theme_name'] . '.css' : '',
'T_THEME_DATA' => (!$user->theme['primary']['css_storedb']) ? '' : $user->theme['primary']['css_data'])
); );
if (!empty($config['send_encoding'])) if (!empty($config['send_encoding']))