Changeset 13114 for extensions/gvideo/main.inc.php
- Timestamp:
- Feb 12, 2012, 11:01:46 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/main.inc.php
r8237 r13114 34 34 35 35 36 add_event_handler('get_thumbnail_location', 'py_mimetype', 60, 2); 36 37 function py_mimetype($location, $element_info) 37 38 { … … 44 45 $location= 'plugins/' . GVIDEO_DIR . '/mimetypes/' . $extension . '.png'; 45 46 } 47 } 48 return $location; 49 } 50 51 add_event_handler('get_mimetype_location', 'py_mimetype_location', 60, 2); 52 function 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'; 46 58 } 47 59 return $location;
Note: See TracChangeset
for help on using the changeset viewer.