diff options
Diffstat (limited to 'phpBB/phpbb/cache/driver/file.php')
| -rw-r--r-- | phpBB/phpbb/cache/driver/file.php | 16 | 
1 files changed, 9 insertions, 7 deletions
| diff --git a/phpBB/phpbb/cache/driver/file.php b/phpBB/phpbb/cache/driver/file.php index 944dfd6541..a64232400b 100644 --- a/phpBB/phpbb/cache/driver/file.php +++ b/phpBB/phpbb/cache/driver/file.php @@ -7,6 +7,8 @@  *  */ +namespace phpbb\cache\driver; +  /**  * @ignore  */ @@ -19,7 +21,7 @@ if (!defined('IN_PHPBB'))  * ACM File Based Caching  * @package acm  */ -class phpbb_cache_driver_file extends phpbb_cache_driver_base +class file extends \phpbb\cache\driver\base  {  	var $vars = array();  	var $var_expires = array(); @@ -205,9 +207,9 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base  	function purge()  	{  		// Purge all phpbb cache files -		try  +		try  		{ -			$iterator = new DirectoryIterator($this->cache_dir); +			$iterator = new \DirectoryIterator($this->cache_dir);  		}  		catch (Exception $e)  		{ @@ -256,9 +258,9 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base  	*/  	protected function remove_dir($dir)  	{ -		try  +		try  		{ -			$iterator = new DirectoryIterator($dir); +			$iterator = new \DirectoryIterator($dir);  		}  		catch (Exception $e)  		{ @@ -413,7 +415,7 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base  	/**  	* {@inheritDoc}  	*/ -	function sql_save(phpbb_db_driver $db, $query, $query_result, $ttl) +	function sql_save(\phpbb\db\driver\driver $db, $query, $query_result, $ttl)  	{  		// Remove extra spaces and tabs  		$query = preg_replace('/[\n\r\s\t]+/', ' ', $query); @@ -695,7 +697,7 @@ class phpbb_cache_driver_file extends phpbb_cache_driver_base  		$file = "{$this->cache_dir}$filename.$phpEx"; -		$lock = new phpbb_lock_flock($file); +		$lock = new \phpbb\lock\flock($file);  		$lock->acquire();  		if ($handle = @fopen($file, 'wb')) | 
