Fixed deprecated in games.php line124
Deprecated: Optional parameter $data declared before required parameter $cid is implicitly treated as a required parameter in C:\OSPanel\domains\localhost\system\library\games\games.php on line 124
This commit is contained in:
parent
4a89804165
commit
cd7195b868
|
@ -384,7 +384,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function crontab($data = array(), $id, $cid)
|
public static function crontab($id, $cid, $data = array())
|
||||||
{
|
{
|
||||||
global $cfg;
|
global $cfg;
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
return $hour.':'.$minute;
|
return $hour.':'.$minute;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function crontab($data = array(), $id, $cid)
|
public static function crontab($id, $cid, $data = array())
|
||||||
{
|
{
|
||||||
global $cfg;
|
global $cfg;
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
include(LIB.'games/games.php');
|
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;'
|
$ssh->set('echo "'.$cron_rule.'" >> /etc/crontab;'
|
||||||
."sed -i '/^$/d' /etc/crontab;"
|
."sed -i '/^$/d' /etc/crontab;"
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
|
|
||||||
include(LIB.'games/games.php');
|
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;'
|
$ssh->set('echo "'.$cron_rule.'" >> /etc/crontab;'
|
||||||
."sed -i '/^$/d' /etc/crontab;"
|
."sed -i '/^$/d' /etc/crontab;"
|
||||||
|
|
Loading…
Reference in a new issue