Ignore:
Timestamp:
Aug 9, 2012, 2:12:07 PM (12 years ago)
Author:
mistic100
Message:

compatibility with Embedded Videos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/lightbox/functions.inc.php

    r17139 r17487  
    44function get_lightbox_url($picture)
    55{
    6   global $conf, $py_addext;
    7 
     6  global $conf, $pwg_loaded_plugins;
     7 
    88  $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']))
    1014  {
    1115    return DerivativeImage::url(IMG_LARGE, new SrcImage($picture));
    1216  }
    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 
    1718  return false;
    1819}
Note: See TracChangeset for help on using the changeset viewer.