Fixes for build without config

This commit is contained in:
Dmitry Khomutov 2017-01-11 22:15:54 +07:00
commit 86478a1264
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
56 changed files with 376 additions and 85 deletions

View file

@ -39,8 +39,6 @@ if (!defined('IS_WIN')) {
require_once(ROOT_DIR . 'vendor/autoload.php');
\PHPCensor\ErrorHandler::register();
if (defined('IS_CONSOLE') && IS_CONSOLE) {
$loggerConfig = LoggerConfig::newFromFile(APP_DIR . "loggerconfig.php");
}
@ -66,4 +64,4 @@ if (!defined('IS_CONSOLE')) {
define('IS_CONSOLE', false);
}
\PHPCensor\Helper\Lang::init($config);
\PHPCensor\Helper\Lang::init($config, 'ru');