diff --git a/lib/classes/task/period/cindexer.class.php b/lib/classes/task/period/cindexer.class.php index 1726f70829..006279ea0b 100755 --- a/lib/classes/task/period/cindexer.class.php +++ b/lib/classes/task/period/cindexer.class.php @@ -160,6 +160,39 @@ class task_period_cindexer extends task_abstract return($dom->saveXML()); } + /** + * + * @param string $xml + * @param string $form + * @return string + */ + public function xml2graphic($xml, $form) + { + if (($sxml = simplexml_load_string($xml)) != FALSE) { // in fact XML IS always valid here... + ?> + + cmd log(sprintf('cmd=\'%s\'', escapeshellcmd($logcmd) )); + $this->log(sprintf('cmd=\'%s\'', escapeshellcmd($logcmd))); $execmd = $cmd; - foreach ($args as $arg) - { + foreach ($args as $arg) { $execmd .= ' ' . escapeshellarg($arg); } $process = proc_open(escapeshellcmd($execmd), $descriptors, $pipes, $this->binpath, null, array('bypass_shell' => true));