mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16604] Only apply checks to the local storage provider
PHPBB3-16604
This commit is contained in:
parent
3ba7a7a30e
commit
43805f4eaa
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ class acp_storage
|
||||||
|
|
||||||
$options = $this->get_provider_options($this->get_current_provider($storage_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_new_definition($storage_name, 'path');
|
$path = $this->get_new_definition($storage_name, 'path');
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ class acp_storage
|
||||||
$storage_name = $storage->get_name();
|
$storage_name = $storage->get_name();
|
||||||
$options = $this->get_provider_options($this->get_current_provider($storage_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');
|
$path = $this->get_current_definition($storage_name, 'path');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue