Skip to content

Commit

Permalink
Use constants instead of string literals (#151)
Browse files Browse the repository at this point in the history
* Replaced '../triggers/cron_running' with CRON_RUNNING
* Replaced '../triggers/cron_allowed' with CRON_ALLOWED
  • Loading branch information
belomaxorka committed Apr 10, 2023
1 parent fad7063 commit 1ab2527
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions admin/admin_cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
));

//detect cron status
if (@file_exists('../triggers/cron_running'))
if (@file_exists(CRON_RUNNING))
{
$template->assign_vars(array(
'CRON_RUNNING' => true,
Expand All @@ -85,9 +85,9 @@
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;
Expand Down

0 comments on commit 1ab2527

Please sign in to comment.