Use APP_NAME instread lang variables (#604)

This commit is contained in:
Roman Kelesidis 2023-03-16 15:40:17 +07:00 committed by GitHub
commit 39cd01ca7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

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