Skip to content

Commit

Permalink
#21 Fix incompatible function declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Nov 18, 2021
1 parent 7ea3644 commit bb9df40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CustomHeaderPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function manage($args, $request) {
if ($request->getUserVar('save')) {
$form->readInputData();
if ($form->validate()) {
$form->execute($request);
$form->execute();
return new JSONMessage(true);
}
} else {
Expand Down
5 changes: 3 additions & 2 deletions CustomHeaderSettingsForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ function fetch($request, $template = null, $display = false) {
/**
* Save settings.
*/
function execute($request, ...$functionArgs) {
parent::execute($request, ...$functionArgs);
function execute(...$functionArgs) {
parent::execute(...$functionArgs);

$request = Application::get()->getRequest();
$this->_plugin->updateSetting($this->_contextId, 'content', $this->getData('content'), 'string');
$this->_plugin->updateSetting($this->_contextId, 'footerContent', $this->getData('footerContent'), 'string');
$notificationManager = new NotificationManager();
Expand Down

0 comments on commit bb9df40

Please sign in to comment.