restore graph error width FOR GREAT JUSTICE (someone fix the scale part for me plx)

git-svn-id: http://www.observium.org/svn/observer/trunk@1623 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-08-02 22:01:13 +00:00
parent 9c829573ee
commit a484319bb0

View File

@@ -81,7 +81,7 @@ function graph_error ($string)
{
global $width, $height;
header('Content-type: image/png');
$im = imagecreate($width, $height);
$im = imagecreate($width+79, $height);
$orange = imagecolorallocate($im, 255, 225, 225);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, $height / 2 - 8, $string, imagecolorallocate($im, 128, 0, 0));