diff --git a/src/JasperPHP/JasperPHP.php b/src/JasperPHP/JasperPHP.php index 91d1ae9..1dcb945 100644 --- a/src/JasperPHP/JasperPHP.php +++ b/src/JasperPHP/JasperPHP.php @@ -121,6 +121,13 @@ public function process($input_file, $output_file = false, $format = array("pdf" if( isset($db_connection['jdbc_url']) && !empty($db_connection['jdbc_url']) ) $command .= " --db-url " . $db_connection['jdbc_url']; + + if ( isset($db_connection['jdbc_dir']) && !empty($db_connection['jdbc_dir']) ) + $command .= ' --jdbc-dir ' . $db_connection['jdbc_dir']; + + if ( isset($db_connection['db_sid']) && !empty($db_connection['db_sid']) ) + $command .= ' --db-sid ' . $db_connection['db_sid']; + } $this->redirect_output = $redirect_output;