Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/3825
Browse files Browse the repository at this point in the history
Loads image after edit
  • Loading branch information
DanielnetoDotCom committed Oct 14, 2020
1 parent 7927782 commit 8d8d0c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ Options All -Indexes
RewriteCond %{REQUEST_URI} \.(jpg|jpeg|gif|png|ico)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*$ img/image404.php [NC,L]
RewriteRule (.*)$ img/image404.php?image=$1 [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Expand Down
2 changes: 1 addition & 1 deletion view/img/image404.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$type = 'image/png';

// if the thumb is not ready yet, try to find the default image
if(preg_match('/videos\/(.*)_thumbs.jpg$/', $_SERVER["REQUEST_URI"], $matches)){
if(preg_match('/videos\/(.*)_thumbs(V2)?.jpg/', $_SERVER["REQUEST_URI"], $matches)){
$jpg = "{$global['systemRootPath']}videos/{$matches[1]}.jpg";
if(file_exists($jpg)){
$file = $jpg;
Expand Down

0 comments on commit 8d8d0c9

Please sign in to comment.