aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-14 16:59:21 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-14 16:59:21 -0400
commit2fced917a5aff2019701c5f4986659f79b31ab9e (patch)
treeff3d6fd37ba3c5bc6637fc77da3f3dec69c20b42 /IkiWiki
parent77b0454e0c69fa0a3e3855b5f25322ae26b37042 (diff)
downloadikiwiki-2fced917a5aff2019701c5f4986659f79b31ab9e.tar
ikiwiki-2fced917a5aff2019701c5f4986659f79b31ab9e.tar.gz
sparkline: show error if php does not run
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/sparkline.pm2
1 files changed, 1 insertions, 1 deletions
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");
}