aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-12-25 15:04:48 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-12-25 15:04:48 +0100
commitc6aa4a319dd2cfb76a5919fc295ab782529c6646 (patch)
tree91a336a5ae3b201f014125ed89306d5b35f4b9e4 /phpBB/phpbb/di
parent27cf12f8070a34582781aecfabcc16689b0cb50a (diff)
downloadforums-c6aa4a319dd2cfb76a5919fc295ab782529c6646.tar
forums-c6aa4a319dd2cfb76a5919fc295ab782529c6646.tar.gz
forums-c6aa4a319dd2cfb76a5919fc295ab782529c6646.tar.bz2
forums-c6aa4a319dd2cfb76a5919fc295ab782529c6646.tar.xz
forums-c6aa4a319dd2cfb76a5919fc295ab782529c6646.zip
[ticket/14934] Use bare PHP functions for checking for tmp dir
The symfony methods will cause PHP warnings being thrown. PHPBB3-14934
Diffstat (limited to 'phpBB/phpbb/di')
-rw-r--r--phpBB/phpbb/di/proxy_instantiator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/di/proxy_instantiator.php b/phpBB/phpbb/di/proxy_instantiator.php
index a388e82c0e..f8ef39535b 100644
--- a/phpBB/phpbb/di/proxy_instantiator.php
+++ b/phpBB/phpbb/di/proxy_instantiator.php
@@ -49,7 +49,7 @@ class proxy_instantiator implements InstantiatorInterface
$filesystem = new filesystem();
$tmp_dir = (function_exists('sys_get_temp_dir')) ? sys_get_temp_dir() : '';
if (empty($tmp_dir) || $ini_wrapper->getString('open_basedir') &&
- (!$filesystem->exists($tmp_dir) || !$filesystem->is_writable($tmp_dir)))
+ (!@file_exists($tmp_dir) || !@is_writable($tmp_dir)))
{
$config->setProxiesTargetDir($cache_dir);
}