summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2012-01-31 00:21:07 +0000
committerAnika Henke <anika@selfthinker.org>2012-01-31 00:21:07 +0000
commitc4dda6afdfe780288bffaebcde485b32b91731d6 (patch)
tree4837df80652599a856e786461436c5cf6af8ed4a
parent75b14482064ceb8495221b07b8991b787f520dad (diff)
downloadrpg-c4dda6afdfe780288bffaebcde485b32b91731d6.tar.gz
rpg-c4dda6afdfe780288bffaebcde485b32b91731d6.tar.bz2
fixed .curid to always highlight the current ID of the main/viewed page
-rw-r--r--inc/parser/xhtml.php3
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>';
}