From 2b511094d2840eb01c5824403a4a5b288d5479d0 Mon Sep 17 00:00:00 2001 From: ruan <2369127-ruany@users.noreply.gitlab.com> Date: Sat, 2 May 2020 10:03:25 +0200 Subject: [PATCH] Set init time at earliest time possible --- inc/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/page.php b/inc/page.php index f0d92f1..426f717 100644 --- a/inc/page.php +++ b/inc/page.php @@ -3,6 +3,7 @@ require_once './inc/init.php'; class Page { public function __construct($name, $header = true, $connect = true) { + $this->time = microtime(true); ini_set('default_charset', 'utf-8'); require_once './inc/settings.php'; if (class_exists("EnvSettings")) { @@ -23,7 +24,6 @@ class Page { $this->lang = $this->defaultlang; } - $this->time = microtime(true); if ($header) { require_once './inc/header.php'; }