Skip to content

Commit

Permalink
Update command XML path
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocopam committed Mar 11, 2016
1 parent 9db7b1a commit 1605617
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/JasperPHP/JasperPHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ public function process($input_file, $output_file = false, $format = array('pdf'
if ( isset($db_connection['db_sid']) && !empty($db_connection['db_sid']) )
$command .= ' --db-sid ' . $db_connection['db_sid'];

if ( isset($db_connection['data_file']) )
if ( isset($db_connection['xml_xpath']) )
$command .= ' --xml-xpath ' . $db_connection['xml_xpath'];

if ( isset($db_connection['data_file']) )
$command .= ' --data-file ' . $db_connection['data_file'];

}
Expand Down

0 comments on commit 1605617

Please sign in to comment.