summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
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'] ) ) {