get_image_link_fast fix
authorniekt0 <niekt0@kyberia.cz>
Mon, 4 Apr 2011 20:49:47 +0000 (22:49 +0200)
committerniekt0 <niekt0@kyberia.cz>
Mon, 4 Apr 2011 20:49:47 +0000 (22:49 +0200)
wwwroot/inc/smarty/node_methodz/function.get_image_link_fast.php

index d106916860895c53469b14c7c0a2d9d67ca80589..3220d7ce44eca52f08953c4b45f4ec23fae4b630 100644 (file)
@@ -7,9 +7,9 @@ function smarty_function_get_image_link_fast($params,&$smarty) {
        $id = $params['id'];
        
        if (!is_numeric($id)) { $id=0;}
-       $img = './'.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 "$img"; } 
-       else { echo SYSTEM_IMAGES.'/nodes///.gif'; }
+       if (file_exists('./'.$img)) { echo "$img"; } 
+       else { echo SYSTEM_IMAGES.'nodes/.gif'; }
 }
 ?>
This page took 0.145458 seconds and 4 git commands to generate.