diff options
author | Anika Henke <anika@selfthinker.org> | 2012-01-31 00:21:07 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2012-01-31 00:21:07 +0000 |
commit | c4dda6afdfe780288bffaebcde485b32b91731d6 (patch) | |
tree | 4837df80652599a856e786461436c5cf6af8ed4a /inc/parser | |
parent | 75b14482064ceb8495221b07b8991b787f520dad (diff) | |
download | rpg-c4dda6afdfe780288bffaebcde485b32b91731d6.tar.gz rpg-c4dda6afdfe780288bffaebcde485b32b91731d6.tar.bz2 |
fixed .curid to always highlight the current ID of the main/viewed page
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/xhtml.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index bfa22d066..8d1eb24c1 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -566,6 +566,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { function internallink($id, $name = NULL, $search=NULL,$returnonly=false,$linktype='content') { global $conf; global $ID; + global $INFO; $params = ''; $parts = explode('?', $id, 2); @@ -610,7 +611,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $link['pre'] = ''; $link['suf'] = ''; // highlight link to current page - if ($id == $ID) { + if ($id == $INFO['id']) { $link['pre'] = '<span class="curid">'; $link['suf'] = '</span>'; } |