Fixed inconsistency in image check
authorHarvie <tomas@mudrunka.cz>
Fri, 17 Dec 2010 12:40:16 +0000 (13:40 +0100)
committerHarvie <tomas@mudrunka.cz>
Fri, 17 Dec 2010 12:40:16 +0000 (13:40 +0100)
wwwroot/inc/smarty/node_methodz/function.get_image_link.php

index 606e3d3facce13a45331e1bb5acc04ba29bc8a64..a391aa07d0107b67bde9505be0c0ff471d2c9520 100644 (file)
@@ -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";
This page took 0.211505 seconds and 4 git commands to generate.