Убрано дублирование классов. Helpers уехали из Core. Классы во внешних директориях переехали к остальным.

This commit is contained in:
2023-08-14 18:15:05 +03:00
parent 81a8161d32
commit 0d2b4aba63
114 changed files with 12919 additions and 13151 deletions
+2 -2
View File
@@ -7,7 +7,6 @@ const GAME_VERSION = 'alpha-7.4';
// ВНИМАНИЕ! Не введено в эксплуатацию!
require_once 'mysql_override.php';
require_once 'class/Insallah/Config.php';
spl_autoload_register(function (string $className) {
$rootdir = $_SERVER['DOCUMENT_ROOT'] . '/_incl_data';
@@ -15,7 +14,8 @@ spl_autoload_register(function (string $className) {
# 2 without
$fileName = [
$rootdir . '/class/' . str_replace('\\', DIRECTORY_SEPARATOR, $className . '.php'),
$rootdir . '/class/' . $className . '.php'
$rootdir . '/class/' . $className . '.php',
$rootdir . '/vendor/' . $className . '.php',
];
foreach ($fileName as $file) {
if (file_exists($file)) {