mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Merge pull request #563 from torrentpier/use-constants-instead-of-string-literals
Use constants instead of string literals
This commit is contained in:
commit
bee70c3328
1 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ switch ($mode) {
|
||||||
));
|
));
|
||||||
|
|
||||||
//detect cron status
|
//detect cron status
|
||||||
if (file_exists('../triggers/cron_running')) {
|
if (file_exists(CRON_RUNNING)) {
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'CRON_RUNNING' => true,
|
'CRON_RUNNING' => true,
|
||||||
));
|
));
|
||||||
|
@ -87,8 +87,8 @@ switch ($mode) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'repair':
|
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');
|
redirect('admin/' . basename(__FILE__) . '?mode=list');
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue