Skip to content

Commit

Permalink
Merge branch 'master' of github.com:splitbrain/dokuwiki-plugin-ditaa
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jun 7, 2010
2 parents 4660590 + 3c74ed3 commit 34e9c7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ditaa.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Andreas Gohr <gohr@cosmocode.de>
*/

if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');
if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../');
define('NOSESSION',true);
require_once(DOKU_INC.'inc/init.php');
require_once(DOKU_INC.'inc/pageutils.php');
Expand Down
7 changes: 6 additions & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ function _run($data,$cache) {
exec($cmd, $output, $error);
@unlink($temp);

if ($error != 0) return false;
if ($error != 0){
if($conf['debug']){
dbglog(join("\n",$output),'ditaa command failed: '.$cmd);
}
return false;
}
return true;
}

Expand Down

0 comments on commit 34e9c7a

Please sign in to comment.