mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
Adding the ability to change send_encoding needs a slight tweak to the
code which tests it since it will now always be set git-svn-id: file:///svn/phpbb/trunk@5347 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ab99455e7c
commit
1595f7a8d3
2 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ class acp_board
|
||||||
'max_autologin_time' => array('lang' => 'AUTOLOGIN_LENGTH', 'type' => 'text:5:5', 'explain' => true),
|
'max_autologin_time' => array('lang' => 'AUTOLOGIN_LENGTH', 'type' => 'text:5:5', 'explain' => true),
|
||||||
'ip_check' => array('lang' => 'IP_VALID', 'type' => 'custom', 'method' => 'select_ip_check', 'explain' => true),
|
'ip_check' => array('lang' => 'IP_VALID', 'type' => 'custom', 'method' => 'select_ip_check', 'explain' => true),
|
||||||
'browser_check' => array('lang' => 'BROWSER_VALID', 'type' => 'radio:yes_no', 'explain' => true),
|
'browser_check' => array('lang' => 'BROWSER_VALID', 'type' => 'radio:yes_no', 'explain' => true),
|
||||||
'send_encoding' => array('lang' => 'SEND_ENCODING', 'type' => 'radio:yes_no', 'explain' => true),
|
'send_encoding' => array('lang' => 'SEND_ENCODING', 'type' => 'radio:yes_no', 'explain' => true),
|
||||||
'gzip_compress' => array('lang' => 'ENABLE_GZIP', 'type' => 'radio:yes_no', 'explain' => false),
|
'gzip_compress' => array('lang' => 'ENABLE_GZIP', 'type' => 'radio:yes_no', 'explain' => false),
|
||||||
|
|
||||||
'legend2' => 'PATH_SETTINGS',
|
'legend2' => 'PATH_SETTINGS',
|
||||||
|
|
|
@ -1878,7 +1878,7 @@ function page_header($page_title = '')
|
||||||
'T_THEME_DATA' => (!$user->theme['primary']['theme_storedb']) ? '' : $user->theme['primary']['theme_data'])
|
'T_THEME_DATA' => (!$user->theme['primary']['theme_storedb']) ? '' : $user->theme['primary']['theme_data'])
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!empty($config['send_encoding']))
|
if ($config['send_encoding'])
|
||||||
{
|
{
|
||||||
header('Content-type: text/html; charset: ' . $user->lang['ENCODING']);
|
header('Content-type: text/html; charset: ' . $user->lang['ENCODING']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue