Remove deprecated ini_set

This commit is contained in:
ruan 2016-05-08 12:04:45 +02:00
parent 497641acbb
commit 414167e84f

View File

@ -2,7 +2,8 @@
class Page {
public function __construct($name, $header = true) {
ini_set('mbstring.internal_encoding', 'UTF-8');
header('Content-Type: text/html; charset=UTF-8');
// ini_set('mbstring.internal_encoding', 'UTF-8');
ini_set('default_charset', 'utf-8');
require_once './inc/settings.php';
$settings = new Settings();
@ -10,7 +11,6 @@ class Page {
require_once './lang/' . $settings->lang . '.php';
$lang = new Lang();
$this->lang = $lang;
header('Content-Type: text/html; charset=UTF-8');
$this->time = microtime(true);
if ($header) {