Merge pull request #9 from belomaxorka/fixed-deprecated-method-crontab

Fixed deprecated in games.php line124
This commit is contained in:
Sergei 2023-03-05 09:36:27 +03:00 committed by GitHub
commit e0bf4cc270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -384,7 +384,7 @@
}
}
public static function crontab($data = array(), $id, $cid)
public static function crontab($id, $cid, $data = array())
{
global $cfg;

View file

@ -121,7 +121,7 @@
return $hour.':'.$minute;
}
public static function crontab($data = array(), $id, $cid)
public static function crontab($id, $cid, $data = array())
{
global $cfg;

View file

@ -68,7 +68,7 @@
include(LIB.'games/games.php');
$cron_rule = ctrl::crontab($data, $sid, $cid);
$cron_rule = ctrl::crontab($sid, $cid, $data);
$ssh->set('echo "'.$cron_rule.'" >> /etc/crontab;'
."sed -i '/^$/d' /etc/crontab;"

View file

@ -71,7 +71,7 @@
include(LIB.'games/games.php');
$cron_rule = games::crontab($data, $id, $cid);
$cron_rule = games::crontab($id, $cid, $data);
$ssh->set('echo "'.$cron_rule.'" >> /etc/crontab;'
."sed -i '/^$/d' /etc/crontab;"