Use correct DBA method in mod/settings
This commit is contained in:
parent
1322999fc2
commit
2efd4a7eb7
|
@ -504,7 +504,7 @@ function settings_content(App $a)
|
||||||
if (($a->argc > 1) && ($a->argv[1] === 'addon')) {
|
if (($a->argc > 1) && ($a->argv[1] === 'addon')) {
|
||||||
$addon_settings_forms = [];
|
$addon_settings_forms = [];
|
||||||
|
|
||||||
foreach (DI::dba()->select('hook', ['file', 'function'], ['hook' => 'addon_settings']) as $hook) {
|
foreach (DI::dba()->selectToArray('hook', ['file', 'function'], ['hook' => 'addon_settings']) as $hook) {
|
||||||
$data = '';
|
$data = '';
|
||||||
Hook::callSingle(DI::app(), 'addon_settings', [$hook['file'], $hook['function']], $data);
|
Hook::callSingle(DI::app(), 'addon_settings', [$hook['file'], $hook['function']], $data);
|
||||||
$addon_settings_forms[] = $data;
|
$addon_settings_forms[] = $data;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user