mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12777] Add is_purged()
PHPBB3-12777
This commit is contained in:
parent
4d9e451f60
commit
8e8b493fae
1 changed files with 13 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue