mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/14934] Use bare PHP functions for checking for tmp dir
The symfony methods will cause PHP warnings being thrown. PHPBB3-14934
This commit is contained in:
parent
27cf12f807
commit
c6aa4a319d
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class proxy_instantiator implements InstantiatorInterface
|
||||||
$filesystem = new filesystem();
|
$filesystem = new filesystem();
|
||||||
$tmp_dir = (function_exists('sys_get_temp_dir')) ? sys_get_temp_dir() : '';
|
$tmp_dir = (function_exists('sys_get_temp_dir')) ? sys_get_temp_dir() : '';
|
||||||
if (empty($tmp_dir) || $ini_wrapper->getString('open_basedir') &&
|
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);
|
$config->setProxiesTargetDir($cache_dir);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue