From d3114093f7ee3f72bbc82ecf1fe101aa1de19a02 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 5 Mar 2023 23:09:33 +0700 Subject: [PATCH] Use constants instead of string literals * Replaced '../triggers/cron_running' with CRON_RUNNING * Replaced '../triggers/cron_allowed' with CRON_ALLOWED --- admin/admin_cron.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/admin_cron.php b/admin/admin_cron.php index f5d5c7958..a1942fdd9 100644 --- a/admin/admin_cron.php +++ b/admin/admin_cron.php @@ -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;