Luxbum.net - Script de galerie photo

Changeset 188

Show
Ignore:
Timestamp:
05/07/07 21:31:41 (2 years ago)
Author:
nicolas
Message:

correct bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/api/ui/lib.frontend.php

    r181 r188  
    422422   function linkPhoto($return = false) { 
    423423      $img = $GLOBALS['_LB_render']['res']->f(); 
     424      if (isset($GLOBALS['_LB_render']['img'])) { 
     425         $img = $GLOBALS['_LB_render']['img']; 
     426      } 
     427      else { 
     428         $img = $GLOBALS['_LB_render']['res']->f(); 
     429      } 
    424430      $result = link::full($GLOBALS['_LB_render']['res']->getDir(), 
    425431                                $img->getImageName());