Skip to content

Commit

Permalink
replaced trigger_event for 2020 refactor in edit.php
Browse files Browse the repository at this point in the history
  • Loading branch information
turnermm committed Sep 15, 2020
1 parent 316e5eb commit fe8940a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions action/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,13 @@ function ($matches) {

// Post process and return the output
$data = array($mode,& $Renderer->doc);
if(class_exists('dokuwiki\Extension\Event')) {
Event::createAndTrigger('RENDERER_CONTENT_POSTPROCESS', $data);
}
else {
trigger_event('RENDERER_CONTENT_POSTPROCESS',$data);
}

$xhtml = $Renderer->doc;
$xhtml = str_replace(
array('NWIKISTART','NWIKICLOSE'),
Expand Down
2 changes: 1 addition & 1 deletion plugin.info.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
base ckgedit
author Myron Turner
email [email protected]
date 2020-09-14
date 2020-09-15
name ckgedit
desc WYSIWYG plugin for Dokuwiki
url https://www.dokuwiki.org/plugin:ckgedit
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
master_20-Sep_14-18_31
master_20-Sep_15-09_52

0 comments on commit fe8940a

Please sign in to comment.