Убрано дублирование классов. Helpers уехали из Core. Классы во внешних директориях переехали к остальным.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user