mirror of
https://github.com/slawkens/myaac.git
synced 2026-04-23 10:53:32 +02:00
[WIP] Loading of config .toml's
Deprecate load_config_lua, use MyAAC\Server\Lua\Loader::load instead
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use MyAAC\Server\Config;
|
||||
use Twig\Environment as Twig_Environment;
|
||||
use Twig\Loader\FilesystemLoader as Twig_FilesystemLoader;
|
||||
|
||||
@@ -83,7 +84,7 @@ if($step == 'database') {
|
||||
$config['server_path'] .= '/';
|
||||
}
|
||||
|
||||
if(!file_exists($config['server_path'] . 'config.lua')) {
|
||||
if(!Config::exists()) {
|
||||
$errors[] = $locale['step_database_error_config'];
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user