Forcing Content-Type: text/html;utf8 for all pages see BT#7392

1.9.x
Julio Montoya 13 years ago
parent e959b85066
commit 94cc40956c
  1. 5
      main/inc/lib/template.lib.php

@ -98,7 +98,6 @@ class Template
$this->twig->addFilter('get_setting', new Twig_Filter_Function('api_get_setting'));
$this->twig->addFilter('var_dump', new Twig_Filter_Function('var_dump'));
$this->twig->addFilter('return_message', new Twig_Filter_Function('Display::return_message_and_translate'));
$this->twig->addFilter('display_page_header', new Twig_Filter_Function('Display::page_header_and_translate'));
$this->twig->addFilter(
'display_page_subheader',
@ -767,12 +766,12 @@ class Template
}
$this->assign('header_extra_content', $extra_header);
if ($this->show_header == 1) {
//if ($this->show_header == 1) {
header('Content-Type: text/html; charset='.api_get_system_encoding());
header(
'X-Powered-By: '.$_configuration['software_name'].' '.substr($_configuration['system_version'], 0, 1)
);
}
//}
}
/**

Loading…
Cancel
Save