1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/16956] Remove use of recently changed status for extensions

PHPBB3-16956
This commit is contained in:
Marc Alexander
2022-01-23 20:51:50 +01:00
parent 9bf6e7f32e
commit d08843853e
2 changed files with 2 additions and 24 deletions

View File

@@ -30,7 +30,6 @@ class manager
protected $cache;
protected $php_ext;
protected $extensions;
protected $recently_changed_ext_status;
protected $extension_table;
protected $phpbb_root_path;
protected $cache_name;
@@ -243,7 +242,6 @@ class manager
if ($active)
{
$this->recently_changed_ext_status[$name] = false;
$this->router->without_cache();
}
@@ -298,7 +296,6 @@ class manager
if (!$active)
{
$this->recently_changed_ext_status[$name] = true;
$this->router->without_cache();
}
@@ -514,13 +511,6 @@ class manager
*/
public function is_enabled($name)
{
// The extension has just been enabled and so is not loaded. When asking if it is enabled or
// not we should answer no to stay consistent with the status at the beginning of the request.
if (isset($this->recently_changed_ext_status[$name]))
{
return $this->recently_changed_ext_status[$name];
}
return isset($this->extensions[$name]['ext_active']) && $this->extensions[$name]['ext_active'];
}
@@ -532,13 +522,6 @@ class manager
*/
public function is_disabled($name)
{
// The extension has just been disabled and so is still loaded. When asking if it is disabled or
// not we should answer yes to stay consistent with the status at the beginning of the request.
if (isset($this->recently_changed_ext_status[$name]))
{
return $this->recently_changed_ext_status[$name];
}
return isset($this->extensions[$name]['ext_active']) && !$this->extensions[$name]['ext_active'];
}