mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Some cleanup for attach mod (#1250)
* Some cleanup for attach mod * Update displaying.php * Update CHANGELOG.md
This commit is contained in:
parent
65c7903b21
commit
94f1641b5c
10 changed files with 45 additions and 179 deletions
|
@ -25,7 +25,7 @@ function createThumbnail(string $source, string $newFile, string $mimeType): boo
|
|||
global $attach_config;
|
||||
|
||||
// Get the file information
|
||||
$source = amod_realpath($source);
|
||||
$source = realpath($source);
|
||||
$min_filesize = (int)$attach_config['img_min_thumb_filesize'];
|
||||
$img_filesize = file_exists($source) ? filesize($source) : false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue