Explorar el Código

Adds the OS arguement to get_start_cmd

Reference commit: 18ae759 - which added the OS arguement to the
function.
Adjokip hace 9 años
padre
commit
068a5f3e57
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      modules/cron/cron.php
  2. 1 1
      modules/cron/user_cron.php

+ 1 - 1
modules/cron/cron.php

@@ -199,7 +199,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']);
+			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port'], $remote->what_os());
 			$cpu = $game_home['cpu_affinity'];
 			$nice = $game_home['nice'];
 			

+ 1 - 1
modules/cron/user_cron.php

@@ -193,7 +193,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']);
+			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port'], $remote->what_os());
 			$cpu = $game_home['cpu_affinity'];
 			$nice = $game_home['nice'];