mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-05 18:12:17 +09:00
Actually use modified values from getThumbnail trigger #2693
This commit is contained in:
parent
530464289a
commit
e30e789586
2 changed files with 11 additions and 1 deletions
|
|
@ -1158,6 +1158,11 @@ class DocumentItem extends BaseObject
|
|||
'url' => $thumbnail_url,
|
||||
];
|
||||
$output = ModuleHandler::triggerCall('document.getThumbnail', 'before', $trigger_obj);
|
||||
$width = $trigger_obj->width;
|
||||
$height = $trigger_obj->height;
|
||||
$thumbnail_type = $trigger_obj->type;
|
||||
$thumbnail_file = $trigger_obj->filename;
|
||||
$thumbnail_url = $trigger_obj->url;
|
||||
clearstatcache(true, $thumbnail_file);
|
||||
if (file_exists($thumbnail_file) && filesize($thumbnail_file) > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue