Skip to content

Commit

Permalink
Merge pull request #5 from DeLeidscheFlesch/pullreq-fix-greebo
Browse files Browse the repository at this point in the history
Fix event trigger to work with Greebo.
  • Loading branch information
jrisch committed Sep 17, 2019
2 parents a44bb53 + 65b047d commit 1a19535
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ function register(Doku_Event_Handler $controller) {
}

function handle_action_act_preprocess(Doku_Event $event, $param) {
if (isset($event->data['save'])) {
if ($event->data['save'] == $lang['btn_save']) {
$this->handle();
}
if ($event->data == 'save') {
$this->handle();
}
return;
}
Expand Down

0 comments on commit 1a19535

Please sign in to comment.