From: Joey Hess Date: Wed, 14 Oct 2009 20:59:21 +0000 (-0400) Subject: sparkline: show error if php does not run X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/2fced917a5aff2019701c5f4986659f79b31ab9e sparkline: show error if php does not run --- diff --git a/IkiWiki/Plugin/sparkline.pm b/IkiWiki/Plugin/sparkline.pm index c1f016ffd..fb4849492 100644 --- a/IkiWiki/Plugin/sparkline.pm +++ b/IkiWiki/Plugin/sparkline.pm @@ -149,7 +149,7 @@ sub preprocess (@) { waitpid $pid, 0; $SIG{PIPE}="DEFAULT"; - if ($sigpipe) { + if ($sigpipe || ! defined $png) { error gettext("failed to run php"); }