mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-26 10:39:17 +00:00
Pass the settings object to all plugins.
This commit is contained in:
@@ -113,13 +113,9 @@ class authentication {
|
||||
$object->username = $this->username;
|
||||
$object->password = $this->password;
|
||||
}
|
||||
//database plugin requires the authentication object and settings
|
||||
if ($name == 'database') {
|
||||
$array = $object->$name($this, $settings);
|
||||
} else {
|
||||
//get the array from the plugin
|
||||
$array = $object->$name();
|
||||
}
|
||||
//initialize the plugin send the authentication object and settings
|
||||
$array = $object->$name($this, $settings);
|
||||
|
||||
//build a result array
|
||||
if (!empty($array) && is_array($array)) {
|
||||
$result['plugin'] = $array["plugin"];
|
||||
|
||||
Reference in New Issue
Block a user