Permalink
Browse files

Changes

  • Loading branch information...
1 parent 390131f commit 5c98436115c800723b5f639859f6849491de45bd @skinkie skinkie committed Aug 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 functions.php
View
@@ -241,7 +241,7 @@ function checkandpreview($safebox=0, $width=RESOLUTIONW, $height=RESOLUTIONH, $f
$photo_xml = '<photo>'.($photo!=''?USER_IMAGEDIR.'/'.$photo:'').'</photo>';
- $template = ($template!=''&&file_exists($template)?$template:TEMPLATEDIR.'/default.xsl');
+ $template = ($template!=''&&file_exists($template)?$template:TEMPLATEDIR.'/0-default.xsl');
$xml = new domDocument();
$xml->loadXML('<article>'.
@@ -289,7 +289,7 @@ function batchrender($dir, $width, $height, $playlist) {
$svgfile = $dir.'/'.$filename.'.svg';
$file = $dir.'/'.$filename.'.png';
- $cmd .= $svgfile.' --export-width='.$width.' --export-height='.$height.' --export-png='.$file.'\n';
+ $cmd .= $svgfile.' --export-width='.$width.' --export-height='.$height.' --export-png='.$file."\n";
}
$cmd .= 'quit';
shell_exec('echo "'.$cmd.'" | /usr/bin/inkscape --shell 2>&1 1>/dev/null');

0 comments on commit 5c98436

Please sign in to comment.