Use constants instead of string literals (#151)

* Replaced '../triggers/cron_running' with CRON_RUNNING
* Replaced '../triggers/cron_allowed' with CRON_ALLOWED
This commit is contained in:
Roman Kelesidis 2023-04-10 12:34:26 +07:00 committed by GitHub
parent fad7063e7b
commit 1ab25279f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

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