diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-13 12:14:07 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-08-13 12:14:07 +0000 |
commit | e9188d4e05eeadfd9246d9dc44160736f6fa64d6 (patch) | |
tree | 7fcdcc5cd7c7e90e2ae4f8abc309fc74101b025b /phpBB/includes/functions.php | |
parent | 11f05e3513f4133cce57d4177f9616c1ef32cd34 (diff) | |
download | forums-e9188d4e05eeadfd9246d9dc44160736f6fa64d6.tar forums-e9188d4e05eeadfd9246d9dc44160736f6fa64d6.tar.gz forums-e9188d4e05eeadfd9246d9dc44160736f6fa64d6.tar.bz2 forums-e9188d4e05eeadfd9246d9dc44160736f6fa64d6.tar.xz forums-e9188d4e05eeadfd9246d9dc44160736f6fa64d6.zip |
Some changes... non-invasive...
git-svn-id: file:///svn/phpbb/trunk@8025 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 5632d78022..64162cc598 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3692,6 +3692,15 @@ function msg_handler($errno, $msg_text, $errfile, $errline) if (strpos($errfile, 'cache') === false && strpos($errfile, 'template.') === false) { + // flush the content, else we get a white page if output buffering is on + if ($config['gzip_compress']) + { + if (@extension_loaded('zlib') && !headers_sent()) + { + ob_end_flush(); + } + } + // remove complete path to installation, with the risk of changing backslashes meant to be there $errfile = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $errfile); $msg_text = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $msg_text); |