Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Should fix some errors with nodes parameter array when sending to bac…
Browse files Browse the repository at this point in the history
…kground
  • Loading branch information
cdujeu committed Mar 17, 2014
1 parent 2a73425 commit ed00563
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/src/core/classes/class.AJXP_Controller.php
Expand Up @@ -336,7 +336,15 @@ public static function applyActionInBackground($currentRepositoryId, $actionName
}
foreach ($parameters as $key=>$value) {
if($key == "action" || $key == "get_action") continue;
$cmd .= " --$key=".escapeshellarg($value);
if(is_array($value)){
$index = 0;
foreach($value as $v){
$cmd .= " --file_".$index."=".escapeshellarg($v);
$index++;
}
}else{
$cmd .= " --$key=".escapeshellarg($value);
}
}

return self::runCommandInBackground($cmd, $logFile);
Expand Down

0 comments on commit ed00563

Please sign in to comment.