r1172 + eliminate config.php dependency with cost of one hardcoded path
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 9 Oct 2007 20:06:48 +0000 (20:06 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 9 Oct 2007 20:06:48 +0000 (20:06 +0000)
render_rack_thumb.php

index 759b989506577ec4504bd1f796031bf687a41a63..ac759c3ff4fb95e01fcf2cf138375e91134e825f 100644 (file)
@@ -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);