diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2008-12-28 23:30:09 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-12-28 23:30:09 +0000 |
| commit | 19aed179e53f9660a7202e2e50816e1cef0f7be9 (patch) | |
| tree | e2707fd68720f206c88f8bcaff6e2fc3173c9c94 /phpBB/style.php | |
| parent | 4ded6cf5eef0892f9ef1d7351664e1d78445c419 (diff) | |
| download | forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.tar forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.tar.gz forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.tar.bz2 forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.tar.xz forums-19aed179e53f9660a7202e2e50816e1cef0f7be9.zip | |
$config to phpbb::$config
git-svn-id: file:///svn/phpbb/trunk@9242 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/style.php')
| -rw-r--r-- | phpBB/style.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/style.php b/phpBB/style.php index 7792df8a90..b83693b5fc 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -48,10 +48,10 @@ if ($sid) $db->sql_freeresult($result); } -$recompile = $config['load_tplcompile']; +$recompile = phpbb::$config['load_tplcompile']; if (!$user) { - $id = $config['default_style']; + $id = phpbb::$config['default_style']; $recompile = false; $user = array('user_id' => ANONYMOUS); } @@ -74,10 +74,10 @@ if (!$theme) if ($user['user_id'] == ANONYMOUS) { - $user['user_lang'] = $config['default_lang']; + $user['user_lang'] = phpbb::$config['default_lang']; } -$user_image_lang = (file_exists(PHPBB_ROOT_PATH . 'styles/' . $theme['imageset_path'] . '/imageset/' . $user['user_lang'])) ? $user['user_lang'] : $config['default_lang']; +$user_image_lang = (file_exists(PHPBB_ROOT_PATH . 'styles/' . $theme['imageset_path'] . '/imageset/' . $user['user_lang'])) ? $user['user_lang'] : phpbb::$config['default_lang']; $sql = 'SELECT * FROM ' . STYLES_IMAGESET_DATA_TABLE . ' @@ -94,7 +94,7 @@ while ($row = $db->sql_fetchrow($result)) $db->sql_freeresult($result); // gzip_compression -if ($config['gzip_compress']) +if (phpbb::$config['gzip_compress']) { // IE6 is not able to compress the style (do not ask us why!) $browser = (!empty($_SERVER['HTTP_USER_AGENT'])) ? strtolower(htmlspecialchars((string) $_SERVER['HTTP_USER_AGENT'])) : ''; |
