mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 08:52:45 +00:00
Remove deprecated ini_set
This commit is contained in:
parent
497641acbb
commit
414167e84f
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
class Page {
|
class Page {
|
||||||
public function __construct($name, $header = true) {
|
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');
|
ini_set('default_charset', 'utf-8');
|
||||||
require_once './inc/settings.php';
|
require_once './inc/settings.php';
|
||||||
$settings = new Settings();
|
$settings = new Settings();
|
||||||
@ -10,7 +11,6 @@ class Page {
|
|||||||
require_once './lang/' . $settings->lang . '.php';
|
require_once './lang/' . $settings->lang . '.php';
|
||||||
$lang = new Lang();
|
$lang = new Lang();
|
||||||
$this->lang = $lang;
|
$this->lang = $lang;
|
||||||
header('Content-Type: text/html; charset=UTF-8');
|
|
||||||
|
|
||||||
$this->time = microtime(true);
|
$this->time = microtime(true);
|
||||||
if ($header) {
|
if ($header) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user