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

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

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;
}

View file

@ -1579,7 +1579,6 @@ $lang['USERS'] = 'User Admin';
$lang['GROUPS'] = 'Group Admin';
$lang['FORUMS'] = 'Forum Admin';
$lang['MODS'] = 'Modifications';
$lang['TP'] = 'TorrentPier';
$lang['CONFIGURATION'] = 'Configuration';
$lang['MANAGE'] = 'Management';