This commit is contained in:
2023-07-31 20:06:51 +03:00
109 changed files with 15204 additions and 33584 deletions
+4 -5
View File
@@ -1,10 +1,9 @@
<?php
use Core\Config;
use Insallah\Tournaments\Tournament;
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', 'Off');
//error_reporting(E_ALL);
date_default_timezone_set('Europe/Moscow');
header('Cache-Control: no-cache, no-store, must-revalidate');
@@ -24,8 +23,8 @@ spl_autoload_register(function ($className) {
# 2 without
$fileName = [
__DIR__ . '/class/' . str_replace('\\', '/', $className . '.php'),
__DIR__ . '/class/' . $className . '.php'
];
__DIR__ . '/class/' . $className . '.php',
];
foreach ($fileName as $file) {
if (file_exists($file)) {
require_once $file;