From 9650763a19d0fd653e1b323d86973cafa2dc3b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Sat, 16 Jun 2018 17:46:19 +0200 Subject: [PATCH] [ticket/15692] Allow to check if file exists using adapter too PHPBB3-15692 --- phpBB/phpbb/storage/storage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/storage/storage.php b/phpBB/phpbb/storage/storage.php index 4097d7ac82..d3e2024a50 100644 --- a/phpBB/phpbb/storage/storage.php +++ b/phpBB/phpbb/storage/storage.php @@ -153,9 +153,9 @@ class storage * * @return bool Returns true if the file/directory exist, false otherwise. */ - public function exists($path) + public function exists($path, $full_check = false) { - return $this->is_tracked($path); + return ($this->is_tracked($path) && $full_check && $this->get_adapter()->exists($path)); } /**