summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-25 12:23:40 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-25 12:23:40 +0100
commit3ac522d22fcc4e1ea2d351e78f13af5556023b40 (patch)
treee1843bade3b3b27c55d79a43a3f0f2315bf44d21 /edit.php
parent389d36e820c28819efd9c6dd49b103bb1b0edf42 (diff)
downloadfisheye-3ac522d22fcc4e1ea2d351e78f13af5556023b40.tar.gz
fisheye-3ac522d22fcc4e1ea2d351e78f13af5556023b40.tar.bz2
fisheye-3ac522d22fcc4e1ea2d351e78f13af5556023b40.zip
Fisheye: fix video thumbnail regeneration and gateway timeout
- FisheyeImage::renderThumbnails: route video/* mime types through mime_video_create_thumbnail() instead of liberty_generate_thumbnails() which only handles images — fixes regeneration of existing stored videos - edit.php: send redirect before generateGalleryThumbnails() using fastcgi_finish_request() so the browser is released immediately and bulk thumbnail generation runs in background without nginx timeout Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'edit.php')
-rwxr-xr-xedit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index eec9898..c8749cc 100755
--- a/edit.php
+++ b/edit.php
@@ -54,10 +54,13 @@ if( !empty( $_REQUEST['savegallery'] ) ) {
// set the mappings, or if nothing checked, nuke them all
$gContent->addToGalleries( !empty( $_REQUEST['gallery_additions'] ) ? $_REQUEST['gallery_additions'] : null );
+ header("location: ".$gContent->getDisplayUrl() );
if( !empty( $_REQUEST['generate_thumbnails'] ) ) {
+ if( function_exists( 'fastcgi_finish_request' ) ) {
+ fastcgi_finish_request();
+ }
$gContent->generateGalleryThumbnails();
}
- header("location: ".$gContent->getDisplayUrl() );
die();
}
} elseif( !empty( $_REQUEST['delete'] ) ) {