mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:46:10 +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
0bc06e1bb1
commit
30c6ea9912
@ -316,7 +316,7 @@ class ExtensionManager
|
||||
*/
|
||||
public function isEnabled($extension)
|
||||
{
|
||||
return in_array($extension, $this->getEnabled());
|
||||
return in_array($extension, $this->getEnabledExtensions());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user