mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 06:56:14 +08:00
Resolved enabled extension test
The getEnabled method returns all extensions (previously) enabled, yet manually uninstalled through composer. This does not reference the exact, current state of the forum. getEnabledExtensions returns a list where the getEnabled list is filtered on the extensions found in the composer installed.json file.
This commit is contained in:
parent
84dafdd5c3
commit
13e20c2ced
|
@ -316,7 +316,7 @@ class ExtensionManager
|
|||
*/
|
||||
public function isEnabled($extension)
|
||||
{
|
||||
return in_array($extension, $this->getEnabled());
|
||||
return in_array($extension, $this->getEnabledExtensions());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user