Ignore:
Timestamp:
Dec 7, 2021, 9:56:09 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Various PHP 8.0 related fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Core.php

    r912 r915  
    2626  public LocaleManager $LocaleManager;
    2727  public array $LinkLocaleExceptions;
     28  public float $ScriptTimeStart;
    2829
    2930  function __construct()
     
    5960  {
    6061    $this->BaseView = new BaseView($this);
     62    if (isset($this->Config['Web']['FormatHTML']))
     63      $this->BaseView->FormatHTML = $this->Config['Web']['FormatHTML'];
     64    if (isset($this->Config['Web']['ShowRuntimeInfo']))
     65      $this->BaseView->ShowRuntimeInfo = $this->Config['Web']['ShowRuntimeInfo'];
     66    if (isset($this->Config['Web']['Charset']))
     67      $this->BaseView->Encoding = $this->Config['Web']['Charset'];
     68    if (isset($this->Config['Web']['Style']))
     69      $this->BaseView->Style = $this->Config['Web']['Style'];
    6170
    6271    /* @var $Page Page */
     
    8998  function RunCommon(): void
    9099  {
    91     global $Database, $ScriptTimeStart, $ConfigFileName, $Config, $GlobalLocaleManager;
     100    global $Database, $ConfigFileName, $Config, $GlobalLocaleManager;
    92101
    93102    date_default_timezone_set('Europe/Prague');
    94103    mb_internal_encoding("UTF-8");
    95     $ScriptTimeStart = GetMicrotime();
     104    $this->ScriptTimeStart = GetMicrotime();
    96105
    97106    // SQL injection hack protection
Note: See TracChangeset for help on using the changeset viewer.