From 899bbb3abc8ece03639c4d67aad9cc3efc970128 Mon Sep 17 00:00:00 2001 From: shintak Date: Sun, 30 Dec 2018 20:01:08 +0900 Subject: [PATCH] Relative path ".:" does not work close #95 syntax/blog.php - complement the blog's parent namespaces in case it is nested. --- syntax/blog.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syntax/blog.php b/syntax/blog.php index 4311330..f695b5e 100644 --- a/syntax/blog.php +++ b/syntax/blog.php @@ -60,6 +60,11 @@ function render($mode, Doku_Renderer $renderer, $data) { $first = $_REQUEST['first']; if (!is_numeric($first)) $first = 0; + // complement the blog's parent namespaces in case it is nested + if(getNS(getID())){ + $ns = getNS(getID()) .":". $ns; + } + // get the blog entries for our namespace /** @var helper_plugin_blog $my */ if ($my =& plugin_load('helper', 'blog')) $entries = $my->getBlog($ns);