own3mall 8 лет назад
Родитель
Сommit
00cbc22bc0
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      modules/cron/cron.php
  2. 1 1
      modules/cron/user_cron.php

+ 1 - 1
modules/cron/cron.php

@@ -207,7 +207,7 @@ function exec_ogp_module()
 															  "mod_name" => $game_home['mod_name'],
 															  "def_precmd" => $game_home['def_precmd'],
 															  "def_postcmd" => $game_home['def_postcmd']);
-			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port'], $remote->what_os());
+			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port'], $db);
 			$cpu = $game_home['cpu_affinity'];
 			$nice = $game_home['nice'];
 			

+ 1 - 1
modules/cron/user_cron.php

@@ -224,7 +224,7 @@ function exec_ogp_module()
 															  "mod_name" => $game_home['mod_name'],
 															  "def_precmd" => $game_home['def_precmd'],
 															  "def_postcmd" => $game_home['def_postcmd']);
-			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port'], $remote->what_os());
+			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port'], $db);
 			$cpu = $game_home['cpu_affinity'];
 			$nice = $game_home['nice'];