Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

correctly display links in the root namespace. closes #5

  • Loading branch information...
commit 0e11c54da64fcaff9020daa35b637dcd8f7c9193 1 parent 3ffeaba
@splitbrain splitbrain authored
Showing with 5 additions and 6 deletions.
  1. +1 −1  plugin.info.txt
  2. +4 −5 syntax.php
View
2  plugin.info.txt
@@ -1,7 +1,7 @@
base navi
author Andreas Gohr
email gohr@cosmocode.de
-date 2009-03-09
+date 2010-10-20
name Navigation Plugin
desc Build a navigation menu from a list
url http://www.dokuwiki.org/plugin:navi
View
9 syntax.php
@@ -74,12 +74,11 @@ function handle($match, $state, $pos, &$handler){
}elseif($instructions[$i][0] == 'listitem_close'){
$cnt++;
}elseif($instructions[$i][0] == 'internallink'){
- $page = cleanID($instructions[$i][1][0]);
$list[$page] = array(
'parents' => $parents,
- 'page' => cleanID($instructions[$i][1][0]),
- 'title' => $instructions[$i][1][1],
- 'lvl' => $lvl
+ 'page' => cleanID($instructions[$i][1][0]),
+ 'title' => $instructions[$i][1][1],
+ 'lvl' => $lvl
);
}
}
@@ -177,7 +176,7 @@ function render($format, &$R, $data) {
$R->listcontent_open();
if(($format == 'xhtml') && ($info['page'] == $current)) $R->doc .= '<span class="current">';
- $R->internallink($info['page'],$info['title']);
+ $R->internallink(':'.$info['page'],$info['title']);
if(($format == 'xhtml') && ($info['page'] == $current)) $R->doc .= '</span>';
$R->listcontent_close();
}
Please sign in to comment.
Something went wrong with that request. Please try again.