phpBB

Code Changes

File: phpbb/cache/driver/file.php

  Unmodified   Added   Modified   Removed
Line 37Line 37
		$this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_container->getParameter('core.cache_dir');
$this->filesystem = new \phpbb\filesystem\filesystem();


		$this->cache_dir = !is_null($cache_dir) ? $cache_dir : $phpbb_container->getParameter('core.cache_dir');
$this->filesystem = new \phpbb\filesystem\filesystem();


		if (!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);

			mkdir($this->cache_dir, 0777, true);

		}
}


		}
}


Line 581Line 581

try
{


try
{

				$this->filesystem->phpbb_chmod($file, CHMOD_READ | CHMOD_WRITE);

				$this->filesystem->phpbb_chmod($file, \phpbb\filesystem\filesystem_interface::CHMOD_READ | \phpbb\filesystem\filesystem_interface::CHMOD_WRITE);

			}
catch (\phpbb\filesystem\exception\filesystem_exception $e)
{

			}
catch (\phpbb\filesystem\exception\filesystem_exception $e)
{