mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[ticket/12777] Add is_purged()
PHPBB3-12777
This commit is contained in:
parent
4d9e451f60
commit
8e8b493fae
@ -556,6 +556,19 @@ class manager
|
||||
return isset($this->extensions[$name]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check to see if a given extension is purged
|
||||
*
|
||||
* An extension is purged if it is available, not enabled and not disabled.
|
||||
*
|
||||
* @param string $name Extension name to check
|
||||
* @return bool Depending on whether or not the extension is purged
|
||||
*/
|
||||
public function is_purged($name)
|
||||
{
|
||||
return $this->is_available($name) && !$this->is_configured($name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a \phpbb\finder.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user