]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix request start time
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 12 Mar 2024 09:18:10 +0000 (12:18 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 12 Mar 2024 09:18:10 +0000 (12:18 +0300)
erp24/startup.php
erp24/web/index.php

index 4699156b12967a5a110dc69c15ab8282bc62ab37..7536e4a19a6c653675f004105c5ef07075009ee5 100644 (file)
@@ -6,8 +6,6 @@
 
 date_default_timezone_set('Europe/Moscow');
 
-$tstart=microtime(1);
-
 
 if($_SERVER['REMOTE_ADDR']=="127.0.0.1" | getenv('MODE') === 'dev') {
     error_reporting(E_ALL);
index 7c1d232aa9b00f47e242367fd94439e1ebd217d7..6062df6b6ff060ccc316d377b4a257e417b87769 100644 (file)
@@ -1,5 +1,9 @@
 <?php
 
+global $tstart;
+
+$tstart = microtime(1);
+
 // comment out the following two lines when deployed to production
 defined('YII_DEBUG') or define('YII_DEBUG', true);
 defined('YII_ENV') or define('YII_ENV', 'dev');