mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/extension-manager] Make sure the extension manager works without cache
Includes a test for manager without a cache PHPBB3-10323
This commit is contained in:
@@ -48,7 +48,7 @@ class phpbb_extension_manager
|
||||
$this->extension_table = $extension_table;
|
||||
$this->cache_name = $cache_name;
|
||||
|
||||
$this->extensions = $this->cache->get($this->cache_name);
|
||||
$this->extensions = ($this->cache) ? $this->cache->get($this->cache_name) : false;
|
||||
|
||||
if ($this->extensions === false)
|
||||
{
|
||||
@@ -78,7 +78,11 @@ class phpbb_extension_manager
|
||||
}
|
||||
|
||||
ksort($this->extensions);
|
||||
$this->cache->put($this->cache_name, $this->extensions);
|
||||
|
||||
if ($this->cache)
|
||||
{
|
||||
$this->cache->put($this->cache_name, $this->extensions);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user