diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-12-25 15:04:48 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-25 15:04:48 +0100 |
commit | c6aa4a319dd2cfb76a5919fc295ab782529c6646 (patch) | |
tree | 91a336a5ae3b201f014125ed89306d5b35f4b9e4 /phpBB/phpbb/di | |
parent | Merge branch '3.1.x' into 3.2.x (diff) | |
download | phpbb-c6aa4a319dd2cfb76a5919fc295ab782529c6646.tar.gz phpbb-c6aa4a319dd2cfb76a5919fc295ab782529c6646.tar.bz2 phpbb-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.php | 2 |
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); } |