Permalink
Browse files

\n wasn't parsed

  • Loading branch information...
1 parent 50bd5c0 commit ca7c80f1ffd10df7c1d441cba1ce2690e66b952a @skinkie skinkie committed Jan 20, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 functions.php
View
3 functions.php
@@ -1,5 +1,4 @@
<?php
- setlocale(LC_ALL,'nl_NL');
require_once('message.php');
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false)
header('Content-type: application/xhtml+xml; charset=utf-8');
@@ -289,7 +288,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 ca7c80f

Please sign in to comment.