From 738363f69c2c7e68459cc0830e76190cd63ad886 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Tue, 9 Oct 2007 20:06:48 +0000 Subject: [PATCH] r1172 + eliminate config.php dependency with cost of one hardcoded path --- render_rack_thumb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render_rack_thumb.php b/render_rack_thumb.php index 759b9895..ac759c3f 100644 --- a/render_rack_thumb.php +++ b/render_rack_thumb.php @@ -15,8 +15,8 @@ renderRackThumb ($_REQUEST['rack_id']); //------------------------------------------------------------------------ function renderError () { - global $image; - $img = imagecreatefrompng ($image['error']['path']); + // A hardcoded value is worth of saving lots of code here. + $img = imagecreatefrompng ('pix/error.png'); header("Content-type: image/png"); imagepng ($img); imagedestroy ($img); -- 2.25.1