mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
Update dispatch.php
This commit is contained in:
parent
43fb25a798
commit
dde01601bd
1 changed files with 2 additions and 2 deletions
|
|
@ -720,8 +720,8 @@ function create_thumb($src, $desired_width = null, $desired_height = null) {
|
|||
$h = null;
|
||||
}
|
||||
|
||||
$path = parse_url($src, PHP_URL_PATH);
|
||||
$fileName = rawurldecode(basename($path));
|
||||
$path = pathinfo($src, PATHINFO_FILENAME);
|
||||
$fileName = rawurldecode($path);
|
||||
$thumbFile = $dir . '/' . $fileName . '-' . $desired_width . $h .'.webp';
|
||||
|
||||
if (file_exists($thumbFile)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue