mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Force output buffers to be flushed, if they're turned on.
If output buffering is turned on, PHP can be a bit slack about sending the data to the client before closing the connection with exit(). These changes ensure we call ob_flush() before we leave. We call @ob_flush() so we don't get noisy warnings when output buffering is off...
This commit is contained in:
1 parent
c093419591
commit
b50b2d82ea
13 files changed
+24
-23
No files matched your search
+1
-1
@@ -24,7 +24,7 @@ if ( ! @include_once( $code_file ) ) {
|
||||
$c->messages[] = sprintf('No page found to %s %s%s%s', $action, ($action == 'browse' ? '' : 'a '), $component, ($action == 'browse' ? 's' : ''));
|
||||
include('page-header.php');
|
||||
include('page-footer.php');
|
||||
exit(0);
|
||||
@ob_flush(); exit(0);
|
||||
}
|
||||
|
||||
include('page-header.php');
|
||||
|
||||
Reference in new issue
Block a user