Skip to content

Commit 6708127

Browse files
committed
Seems that this is better solution to the #245 (output buffering)
This works for both, when output_buffering is enabled, and disabled
1 parent ae8a9fc commit 6708127

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

install/tools/5-database.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
require BASE . 'install/includes/config.php';
1212

1313
ini_set('max_execution_time', 300);
14-
if(ob_get_length() > 0) {
15-
ob_implicit_flush();
16-
ob_end_flush();
17-
}
14+
15+
@ob_end_flush();
16+
ob_implicit_flush();
17+
1818
header('X-Accel-Buffering: no');
1919

2020
if(!$error) {

install/tools/7-finish.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
require BASE . 'install/includes/locale.php';
1313

1414
ini_set('max_execution_time', 300);
15-
if(ob_get_length() > 0) {
16-
ob_implicit_flush();
17-
ob_end_flush();
18-
}
15+
16+
@ob_end_flush();
17+
ob_implicit_flush();
18+
1919
header('X-Accel-Buffering: no');
2020
/*
2121
if(isset($config['installed']) && $config['installed'] && !isset($_SESSION['saved'])) {

0 commit comments

Comments
 (0)