Skip to content
Snippets Groups Projects
Commit c4dda6af authored by Anika Henke's avatar Anika Henke
Browse files

fixed .curid to always highlight the current ID of the main/viewed page

parent 75b14482
No related branches found
No related tags found
No related merge requests found
......@@ -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>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment