made sidebar inclusion backwards compatible (fixes #6)
This commit is contained in:
parent
6bbe2c80c5
commit
54b7d19a6b
1 changed files with 10 additions and 0 deletions
|
|
@ -243,3 +243,13 @@ if (!function_exists('tpl_incdir')) {
|
||||||
return DOKU_INC.'lib/tpl/'.$conf['template'].'/';
|
return DOKU_INC.'lib/tpl/'.$conf['template'].'/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* does *not* emulate the core function, but returns only
|
||||||
|
* if sidebar is set to make it roughly backwards compatible
|
||||||
|
*/
|
||||||
|
if (!function_exists('page_findnearest')) {
|
||||||
|
function page_findnearest($sidebar){
|
||||||
|
return $sidebar;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue