mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
again... ie6 is still not behaving correctly... the pragma header invalidates the content. I hope this is really the cause now. :/
git-svn-id: file:///svn/phpbb/trunk@8054 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
cf4950f4c6
commit
1be20d2e30
1 changed files with 2 additions and 4 deletions
|
@ -174,8 +174,6 @@ if ($id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Content-type: text/css; charset=UTF-8');
|
|
||||||
|
|
||||||
if ($recache)
|
if ($recache)
|
||||||
{
|
{
|
||||||
include_once($phpbb_root_path . 'includes/acp/acp_styles.' . $phpEx);
|
include_once($phpbb_root_path . 'includes/acp/acp_styles.' . $phpEx);
|
||||||
|
@ -199,15 +197,15 @@ if ($id)
|
||||||
// Only set the expire time if the theme changed data is older than 30 minutes - to cope with changes from the ACP
|
// Only set the expire time if the theme changed data is older than 30 minutes - to cope with changes from the ACP
|
||||||
if ($recache || $theme['theme_mtime'] > (time() - 1800))
|
if ($recache || $theme['theme_mtime'] > (time() - 1800))
|
||||||
{
|
{
|
||||||
header('Cache-Control: private, no-cache="set-cookie"');
|
|
||||||
header('Expires: 0');
|
header('Expires: 0');
|
||||||
header('Pragma: no-cache');
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + $expire_time));
|
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + $expire_time));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header('Content-type: text/css; charset=UTF-8');
|
||||||
|
|
||||||
// Parse Theme Data
|
// Parse Theme Data
|
||||||
$replace = array(
|
$replace = array(
|
||||||
'{T_THEME_PATH}' => "{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme',
|
'{T_THEME_PATH}' => "{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme',
|
||||||
|
|
Loading…
Add table
Reference in a new issue