diff --git a/CHANGELOG.md b/CHANGELOG.md index e79ff72f..84844ac6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - Fixed issue with atom feed [\#147](https://github.com/torrentpier/torrentpier-lts/pull/147) ([belomaxorka](https://github.com/belomaxorka)) - Added theme exists check [\#149](https://github.com/torrentpier/torrentpier-lts/pull/149) ([belomaxorka](https://github.com/belomaxorka)) - Use XS_TPL_PREFIX instread of 'tpl_' [\#150](https://github.com/torrentpier/torrentpier-lts/pull/150) ([belomaxorka](https://github.com/belomaxorka)) +- Use constants instead of string literals [\#151](https://github.com/torrentpier/torrentpier-lts/pull/151) ([belomaxorka](https://github.com/belomaxorka)) - Minor fixes [\#124](https://github.com/torrentpier/torrentpier-lts/pull/124), [\#133](https://github.com/torrentpier/torrentpier-lts/pull/133), [\#135](https://github.com/torrentpier/torrentpier-lts/pull/135), [\#136](https://github.com/torrentpier/torrentpier-lts/pull/136), [\#139](https://github.com/torrentpier/torrentpier-lts/pull/139), [\#142](https://github.com/torrentpier/torrentpier-lts/pull/142), [\#144](https://github.com/torrentpier/torrentpier-lts/pull/144), [\#145](https://github.com/torrentpier/torrentpier-lts/pull/145), [\#148](https://github.com/torrentpier/torrentpier-lts/pull/148) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.03](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.03) (2023-04-04) diff --git a/admin/admin_cron.php b/admin/admin_cron.php index 4ba48d91..fe4bdd4e 100644 --- a/admin/admin_cron.php +++ b/admin/admin_cron.php @@ -76,7 +76,7 @@ switch ($mode) )); //detect cron status - if (@file_exists('../triggers/cron_running')) + if (@file_exists(CRON_RUNNING)) { $template->assign_vars(array( 'CRON_RUNNING' => true, @@ -85,9 +85,9 @@ switch ($mode) break; case 'repair': - if (@file_exists('../triggers/cron_running')) + if (@file_exists(CRON_RUNNING)) { - rename("../triggers/cron_running", "../triggers/cron_allowed"); + rename(CRON_RUNNING, CRON_ALLOWED); } redirect('admin/'.basename(__FILE__) . '?mode=list'); break;