Fix modal, database and Module/PHP

This commit is contained in:
Bizarrus committed 2023-11-05 06:13:21 +01:00
1 parent a30b6ebd0f
commit b40bec7ca0
7 files changed
+15 -27

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@
return $this->instance->getSettings($name, $default);
}
public function addButton(Button $button, bool $logged_in = false) {
public function addButton(Button | array $button, bool $logged_in = false) {
$this->addFilter('buttons', function($buttons) use($button) {
$buttons[] = $button;
return $buttons;