X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fphp-collection%2Fgraph.php;h=fdfcbaaffe0e1f041f6a5514bf4f31ad273173ab;hb=2cf10557f58144e13793a3d69ae5d4b7c8d6c305;hp=b9fefa6ad479f135e79f7da19cc2cc1d2ac80308;hpb=03aa21f08fede809f37a7443d3124fb9314f4dc8;p=collectd.git diff --git a/contrib/php-collection/graph.php b/contrib/php-collection/graph.php index b9fefa6a..fdfcbaaf 100644 --- a/contrib/php-collection/graph.php +++ b/contrib/php-collection/graph.php @@ -86,7 +86,7 @@ function error($code, $code_msg, $title, $msg) { imagestring($png, 4, ceil(($w-strlen($title)*imagefontwidth(4)) / 2), 10, $title, $c_txt); imagestring($png, 5, 60, 35, sprintf('%s [%d]', $code_msg, $code), $c_etxt); if (function_exists('imagettfbbox') && is_file($config['error_font'])) { - // Detailled error message + // Detailed error message $fmt_msg = makeTextBlock($msg, $errorfont, 10, $w-86); $fmtbox = imagettfbbox(12, 0, $errorfont, $fmt_msg); imagettftext($png, 10, 0, 55, 35+3+imagefontwidth(5)-$fmtbox[7]+$fmtbox[1], $c_txt, $errorfont, $fmt_msg);