Browse Source

made sidebar inclusion backwards compatible (fixes #6)

master
Anika Henke 9 years ago
parent
commit
54b7d19a6b
  1. 10
      tpl_functions.php

10
tpl_functions.php

@ -243,3 +243,13 @@ if (!function_exists('tpl_incdir')) {
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…
Cancel
Save