Merge pull request #563 from torrentpier/use-constants-instead-of-string-literals

Use constants instead of string literals
This commit is contained in:
Roman Kelesidis 2023-03-05 23:49:14 +07:00 committed by GitHub
commit bee70c3328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ switch ($mode) {
));
//detect cron status
if (file_exists('../triggers/cron_running')) {
if (file_exists(CRON_RUNNING)) {
$template->assign_vars(array(
'CRON_RUNNING' => true,
));
@ -87,8 +87,8 @@ switch ($mode) {
break;
case 'repair':
if (file_exists('../triggers/cron_running')) {
rename('../triggers/cron_running', '../triggers/cron_allowed');
if (file_exists(CRON_RUNNING)) {
rename(CRON_RUNNING, CRON_ALLOWED);
}
redirect('admin/' . basename(__FILE__) . '?mode=list');
break;