From ccc8b5fd84846cd712c23144ff33056471b5091c Mon Sep 17 00:00:00 2001 From: mw75 Date: Sun, 7 May 2023 18:54:56 +0200 Subject: [PATCH] addnewpage with @NS@ in sidebar (#77) If you use addnewpage with @NS@ in the sidebar, you get the namespace of the sidebar page (global ) and not the viewed one. --- syntax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index ce733f7..61a3922 100644 --- a/syntax.php +++ b/syntax.php @@ -126,7 +126,7 @@ public function render($mode, Doku_Renderer $renderer, $data) { * @author Michael Braun */ protected function _parseNS($ns) { - global $ID; + $ID=getID(); if(strpos($ns, '@PAGE@') !== false) { return cleanID(str_replace('@PAGE@', $ID, $ns)); }