mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Removed APP_NAME variable (#708)
This commit is contained in:
parent
214e862e91
commit
8add267b2f
4 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
# Common params
|
# Common params
|
||||||
APP_NAME=TorrentPier
|
|
||||||
APP_ENV=local
|
APP_ENV=local
|
||||||
APP_DEBUG=false
|
APP_DEBUG=false
|
||||||
APP_CRON_ENABLED=true
|
APP_CRON_ENABLED=true
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!empty($setmodules)) {
|
if (!empty($setmodules)) {
|
||||||
$module[env('APP_NAME', 'TorrentPier')]['FORUM_CONFIG'] = basename(__FILE__);
|
$module['TorrentPier']['FORUM_CONFIG'] = basename(__FILE__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
require __DIR__ . '/pagestart.php';
|
require __DIR__ . '/pagestart.php';
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
if (!empty($setmodules)) {
|
if (!empty($setmodules)) {
|
||||||
if (IS_SUPER_ADMIN) {
|
if (IS_SUPER_ADMIN) {
|
||||||
$module[env('APP_NAME', 'TorrentPier')]['CRON'] = basename(__FILE__) . '?mode=list';
|
$module['TorrentPier']['CRON'] = basename(__FILE__) . '?mode=list';
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ class Dev
|
||||||
*/
|
*/
|
||||||
$loggingInConsole = new PlainTextHandler();
|
$loggingInConsole = new PlainTextHandler();
|
||||||
$loggingInConsole->loggerOnly(true);
|
$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);
|
$whoops->pushHandler($loggingInConsole);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -66,7 +66,7 @@ class Dev
|
||||||
if (ini_get('log_errors') == 1) {
|
if (ini_get('log_errors') == 1) {
|
||||||
$loggingInFile = new PlainTextHandler();
|
$loggingInFile = new PlainTextHandler();
|
||||||
$loggingInFile->loggerOnly(true);
|
$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);
|
$whoops->pushHandler($loggingInFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue