Permalink
Browse files

Merge branch 'master' of github.com:splitbrain/dokuwiki-plugin-ditaa

  • Loading branch information...
splitbrain committed Jun 7, 2010
2 parents 4660590 + 3c74ed3 commit 34e9c7a42ed0d565f56bbc0cbbffc4b558c2b7d3
Showing with 7 additions and 2 deletions.
  1. +1 −1 ditaa.php
  2. +6 −1 syntax.php
View
@@ -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');
View
@@ -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;
}

0 comments on commit 34e9c7a

Please sign in to comment.