Changeset 17487 for extensions/lightbox/functions.inc.php
- Timestamp:
- Aug 9, 2012, 2:12:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lightbox/functions.inc.php
r17139 r17487 4 4 function get_lightbox_url($picture) 5 5 { 6 global $conf, $p y_addext;7 6 global $conf, $pwg_loaded_plugins; 7 8 8 $ext = get_extension($picture['file']); 9 if (in_array($ext, $conf['picture_ext'])) 9 if (!empty($pwg_loaded_plugins['gvideo']) and $picture['is_gvideo']) 10 { 11 return get_root_url().'plugins/lightbox/get_content.php?imgid='.$picture['id']; 12 } 13 else if (in_array($ext, $conf['picture_ext'])) 10 14 { 11 15 return DerivativeImage::url(IMG_LARGE, new SrcImage($picture)); 12 16 } 13 elseif (isset($py_addext) and in_array($ext, $py_addext)) 14 { 15 return get_root_url().'plugins/lightbox/get_content.php?imgid='.$picture['id']; 16 } 17 17 18 return false; 18 19 }
Note: See TracChangeset
for help on using the changeset viewer.