aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-08-24 11:35:17 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-08-24 11:35:17 +0000
commitdc49e0fdffe41cbf44363eb6af23503558a94d86 (patch)
treed057e1356b96b3fd49450b8c03cbc3262176e691 /phpBB/includes
parent44148941cc18e694e8395f87b03b7fc7b4727adb (diff)
downloadforums-dc49e0fdffe41cbf44363eb6af23503558a94d86.tar
forums-dc49e0fdffe41cbf44363eb6af23503558a94d86.tar.gz
forums-dc49e0fdffe41cbf44363eb6af23503558a94d86.tar.bz2
forums-dc49e0fdffe41cbf44363eb6af23503558a94d86.tar.xz
forums-dc49e0fdffe41cbf44363eb6af23503558a94d86.zip
fix installation by defining our needed CHMOD_READ and CHMOD_WRITE constants.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8787 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/constants.php4
-rw-r--r--phpBB/includes/functions.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php
index 01300c8992..826afb3832 100644
--- a/phpBB/includes/constants.php
+++ b/phpBB/includes/constants.php
@@ -178,8 +178,8 @@ define('REFERER_VALIDATE_PATH', 2);
// phpbb_chmod() permissions
define('CHMOD_ALL', 7);
-define('CHMOD_READ', 4);
-define('CHMOD_WRITE', 2);
+@define('CHMOD_READ', 4);
+@define('CHMOD_WRITE', 2);
define('CHMOD_EXECUTE', 1);
// Additional constants
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index b3fbd94159..5fcaece0d6 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3131,7 +3131,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
}
// Another quick fix for those having gzip compression enabled, but do not flush if the coder wants to catch "something". ;)
- if ($config['gzip_compress'])
+ if (!empty($config['gzip_compress']))
{
if (@extension_loaded('zlib') && !headers_sent() && !ob_get_level())
{
@@ -3854,7 +3854,7 @@ function exit_handler()
}
// As a pre-caution... some setups display a blank page if the flush() is not there.
- (!$config['gzip_compress']) ? @flush() : @ob_flush();
+ (empty($config['gzip_compress'])) ? @flush() : @ob_flush();
exit;
}