Skip to content

Commit

Permalink
Relative path ".:" does not work close dokufreaks#95
Browse files Browse the repository at this point in the history
syntax/blog.php - complement the blog's parent namespaces in case it is nested.
  • Loading branch information
shimmtak authored Dec 30, 2018
1 parent 41f35e7 commit 899bbb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions syntax/blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 899bbb3

Please sign in to comment.