Removed APP_NAME variable (#708)

This commit is contained in:
Roman Kelesidis 2023-05-23 14:00:28 +07:00 committed by GitHub
commit 8add267b2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,4 @@
# Common params
APP_NAME=TorrentPier
APP_ENV=local
APP_DEBUG=false
APP_CRON_ENABLED=true

View file

@ -8,7 +8,7 @@
*/
if (!empty($setmodules)) {
$module[env('APP_NAME', 'TorrentPier')]['FORUM_CONFIG'] = basename(__FILE__);
$module['TorrentPier']['FORUM_CONFIG'] = basename(__FILE__);
return;
}
require __DIR__ . '/pagestart.php';

View file

@ -9,7 +9,7 @@
if (!empty($setmodules)) {
if (IS_SUPER_ADMIN) {
$module[env('APP_NAME', 'TorrentPier')]['CRON'] = basename(__FILE__) . '?mode=list';
$module['TorrentPier']['CRON'] = basename(__FILE__) . '?mode=list';
}
return;
}

View file

@ -57,7 +57,7 @@ class Dev
*/
$loggingInConsole = new PlainTextHandler();
$loggingInConsole->loggerOnly(true);
$loggingInConsole->setLogger((new Logger(env('APP_NAME', 'TorrentPier'), [(new BrowserConsoleHandler())->setFormatter((new LineFormatter(null, null, true)))])));
$loggingInConsole->setLogger((new Logger('TorrentPier', [(new BrowserConsoleHandler())->setFormatter((new LineFormatter(null, null, true)))])));
$whoops->pushHandler($loggingInConsole);
/**
@ -66,7 +66,7 @@ class Dev
if (ini_get('log_errors') == 1) {
$loggingInFile = new PlainTextHandler();
$loggingInFile->loggerOnly(true);
$loggingInFile->setLogger((new Logger(env('APP_NAME', 'TorrentPier'), [(new StreamHandler(WHOOPS_LOG_FILE))->setFormatter((new LineFormatter(null, null, true)))])));
$loggingInFile->setLogger((new Logger('TorrentPier', [(new StreamHandler(WHOOPS_LOG_FILE))->setFormatter((new LineFormatter(null, null, true)))])));
$whoops->pushHandler($loggingInFile);
}