mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17189] Check if different way of getting parent path works better
PHPBB3-17189
This commit is contained in:
parent
6b6c710706
commit
91b3627236
1 changed files with 1 additions and 1 deletions
2
phpBB/phpbb/cache/driver/file.php
vendored
2
phpBB/phpbb/cache/driver/file.php
vendored
|
@ -37,7 +37,7 @@ class file extends \phpbb\cache\driver\base
|
|||
$this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_container->getParameter('core.cache_dir');
|
||||
$this->filesystem = new \phpbb\filesystem\filesystem();
|
||||
|
||||
if ($this->filesystem->is_writable($this->cache_dir . '/../') && !is_dir($this->cache_dir))
|
||||
if ($this->filesystem->is_writable(dirname($this->cache_dir)) && !is_dir($this->cache_dir))
|
||||
{
|
||||
mkdir($this->cache_dir, 0777, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue