diff --git a/remote.php b/remote.php index fe44a7e..01c9e91 100644 --- a/remote.php +++ b/remote.php @@ -1,9 +1,10 @@ $this->getConf('use_kroki')); + return ["kroki" => $this->getConf('use_kroki')]; } public function getParams() { - $params = array("safe" => $this->getConf('safe_mode'), - "header_footer" => false, - "attributes" => array( - "DOKUWIKI_BASE" => DOKU_BASE, - "DOKUWIKI_URL" => DOKU_URL - ) - ); + $params = ["safe" => $this->getConf('safe_mode'), "header_footer" => false, "attributes" => ["DOKUWIKI_BASE" => DOKU_BASE, "DOKUWIKI_URL" => DOKU_URL]]; if ($this->getExtensions()["kroki"]) { if ($this->getConf('kroki_server') != '') { $params["attributes"]["kroki-server-url"] = $this->getConf('kroki_server'); @@ -174,6 +168,7 @@ public function handle($match, $state, $pos, Doku_Handler $handler) } return [$state, $data, '']; case DOKU_LEXER_MATCHED: + case DOKU_LEXER_SPECIAL: break; case DOKU_LEXER_UNMATCHED: $data = ''; @@ -198,8 +193,6 @@ public function handle($match, $state, $pos, Doku_Handler $handler) return [$state, $data, $match]; case DOKU_LEXER_EXIT: return [$state, '', '']; - case DOKU_LEXER_SPECIAL: - break; } return []; } diff --git a/syntax/block.php b/syntax/block.php index de2eccc..5599a3f 100644 --- a/syntax/block.php +++ b/syntax/block.php @@ -10,7 +10,7 @@ */ // phpcs:disable -include_once 'base.php'; +include_once __DIR__ . '/base.php'; // phpcs:enable class syntax_plugin_asciidocjs_block extends SyntaxPlugin_asciidocjs_base diff --git a/syntax/file.php b/syntax/file.php index 53c9b9b..67d0efb 100644 --- a/syntax/file.php +++ b/syntax/file.php @@ -10,7 +10,7 @@ */ // phpcs:disable -include_once 'base.php'; +include_once __DIR__ . '/base.php'; // phpcs:enable class syntax_plugin_asciidocjs_file extends SyntaxPlugin_asciidocjs_base