forked from GNUsocial/gnu-social
[MODULES] Make settings great again
Plugin main class doesn't use this construct despite extending this class.
This commit is contained in:
parent
33e9b57b78
commit
2222d6d173
@ -41,6 +41,11 @@ class Module
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
// Load Module settings
|
||||
foreach (common_config(static::class) as $aname => $avalue) {
|
||||
$this->$aname = $avalue;
|
||||
}
|
||||
|
||||
Event::addHandler('InitializeModule', [$this, 'initialize']);
|
||||
Event::addHandler('CleanupModule', [$this, 'cleanup']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user