[MODULES] Make settings great again
Plugin main class doesn't use this construct despite extending this class.
This commit is contained in:
parent
2d3ec87ea4
commit
360fc0262b
|
@ -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