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

(cherry picked from commit ed00563)
  • Loading branch information
cdujeu committed Mar 17, 2014
1 parent 4a61343 commit a1ef3fa
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 a1ef3fa

Please sign in to comment.