mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Remove deprecated ini_set
This commit is contained in:
parent
497641acbb
commit
414167e84f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user