From: Harvie Date: Fri, 17 Dec 2010 12:40:16 +0000 (+0100) Subject: Fixed inconsistency in image check X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=819e561767f728e36b0b4205a2022ba224c847fd;p=mirrors%2FKyberia-bloodline.git Fixed inconsistency in image check --- diff --git a/wwwroot/inc/smarty/node_methodz/function.get_image_link.php b/wwwroot/inc/smarty/node_methodz/function.get_image_link.php index 606e3d3..a391aa0 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_image_link.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_image_link.php @@ -2,7 +2,7 @@ function smarty_function_get_image_link($params,&$smarty) { global $db; $id = $params['id']; - $img = SYSTEM_DATA.SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif"; + $img = './'.SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif"; if (file_exists($img)) { echo SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif";