From a2672b004a6b66665da7e9702be5f9d728ba9694 Mon Sep 17 00:00:00 2001 From: Anna Dabrowska Date: Mon, 3 May 2021 21:50:05 +0200 Subject: [PATCH] Compatibility with releases previous to Hogfather --- meta/AggregationTable.php | 4 +--- syntax/output.php | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/meta/AggregationTable.php b/meta/AggregationTable.php index 8e5d938b..72dedd81 100644 --- a/meta/AggregationTable.php +++ b/meta/AggregationTable.php @@ -2,8 +2,6 @@ namespace dokuwiki\plugin\struct\meta; -use dokuwiki\Extension\Event; - /** * Creates the table aggregation output * @@ -127,7 +125,7 @@ public function render() 'data' => $this->result ); - Event::createAndTrigger( + \Doku_Event::createAndTrigger( 'PLUGIN_STRUCT_RENDER_AGGREGATION_TABLE', $rendercontext, array($this, 'renderTable') diff --git a/syntax/output.php b/syntax/output.php index aa94887e..fb52595d 100644 --- a/syntax/output.php +++ b/syntax/output.php @@ -10,7 +10,6 @@ use dokuwiki\plugin\struct\meta\AccessTable; use dokuwiki\plugin\struct\meta\Assignments; use dokuwiki\plugin\struct\meta\StructException; -use dokuwiki\Extension\Event; class syntax_plugin_struct_output extends DokuWiki_Syntax_Plugin { @@ -132,7 +131,7 @@ public function render($format, Doku_Renderer $renderer, $data) 'hasdata' => &$hasdata ); - Event::createAndTrigger( + \Doku_Event::createAndTrigger( 'PLUGIN_STRUCT_RENDER_SCHEMA_DATA', $rendercontext, array($this, 'renderSchemaData')