1
0
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:
Nils Adermann
2011-08-29 20:14:23 -04:00
parent 018a835997
commit c785ef7aa7
2 changed files with 19 additions and 2 deletions

View File

@@ -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);
}
}
/**