Ignore:
Timestamp:
Feb 12, 2012, 11:01:46 AM (13 years ago)
Author:
rvelices
Message:

gvideo mimetype thumbs compatible with 2.4 (compatibility with 2.3 ok)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/gvideo/main.inc.php

    r8237 r13114  
    3434
    3535
     36add_event_handler('get_thumbnail_location', 'py_mimetype', 60, 2);
    3637function py_mimetype($location, $element_info)
    3738{
     
    4445      $location= 'plugins/' . GVIDEO_DIR . '/mimetypes/' . $extension . '.png';
    4546    }
     47  }
     48  return $location;
     49}
     50
     51add_event_handler('get_mimetype_location', 'py_mimetype_location', 60, 2);
     52function py_mimetype_location($location, $ext)
     53{
     54  global $py_addext;
     55  if (in_array($ext, $py_addext))
     56  {
     57    $location= 'plugins/' . GVIDEO_DIR . '/mimetypes/' . $ext . '.png';
    4658  }
    4759  return $location;
Note: See TracChangeset for help on using the changeset viewer.