From 43805f4eaa8a50f8228e595f504c8072eaffb709 Mon Sep 17 00:00:00 2001 From: rxu Date: Sun, 18 Oct 2020 00:07:56 +0700 Subject: [PATCH] [ticket/16604] Only apply checks to the local storage provider PHPBB3-16604 --- phpBB/includes/acp/acp_storage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/acp/acp_storage.php b/phpBB/includes/acp/acp_storage.php index 2df5450737..961c4c4a1b 100644 --- a/phpBB/includes/acp/acp_storage.php +++ b/phpBB/includes/acp/acp_storage.php @@ -118,7 +118,7 @@ class acp_storage $options = $this->get_provider_options($this->get_current_provider($storage_name)); - if (isset($options['path'])) + if ($this->provider_collection->get_by_class($this->get_current_provider($storage_name))->get_name() == 'local' && isset($options['path'])) { $path = $this->get_new_definition($storage_name, 'path'); @@ -188,7 +188,7 @@ class acp_storage $storage_name = $storage->get_name(); $options = $this->get_provider_options($this->get_current_provider($storage_name)); - if (isset($options['path'])) + if ($this->provider_collection->get_by_class($this->get_current_provider($storage_name))->get_name() == 'local' && isset($options['path'])) { $path = $this->get_current_definition($storage_name, 'path');