made sidebar inclusion backwards compatible (fixes #6)

This commit is contained in:
Anika Henke 2013-08-11 21:21:18 +01:00
parent 6bbe2c80c5
commit 54b7d19a6b

View file

@ -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;
}
}