mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
New cron initialization and minor edits (#619)
* New cron initialization and minor edits Updated the mechanism to check if cron needs to run and made minor improvements to the first run * Adding a warning in the control panel
This commit is contained in:
parent
dd853151c0
commit
e4b6a91909
11 changed files with 37 additions and 11 deletions
|
@ -33,7 +33,7 @@ if (!IS_SUPER_ADMIN) {
|
|||
bb_die($lang['NOT_ADMIN']);
|
||||
}
|
||||
|
||||
$sql = DB()->fetch_rowset('SELECT * FROM ' . BB_CONFIG . " WHERE config_name = 'cron_enabled' OR config_name = 'cron_check_interval'");
|
||||
$sql = DB()->fetch_rowset('SELECT * FROM ' . BB_CONFIG . " WHERE config_name = 'cron_check_interval'");
|
||||
|
||||
foreach ($sql as $row) {
|
||||
$config_name = $row['config_name'];
|
||||
|
@ -48,7 +48,7 @@ foreach ($sql as $row) {
|
|||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'CRON_ENABLED' => $new['cron_enabled'] ? true : false,
|
||||
'CRON_ENABLED' => TorrentPier\Helpers\CronHelper::isEnabled(),
|
||||
'CRON_CHECK_INTERVAL' => $new['cron_check_interval'],
|
||||
));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue