From 54b7d19a6b379aa1093fa28ea2570754666776a5 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 11 Aug 2013 21:21:18 +0100 Subject: [PATCH] made sidebar inclusion backwards compatible (fixes #6) --- tpl_functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tpl_functions.php b/tpl_functions.php index 6d49f97..dcbcfaf 100644 --- a/tpl_functions.php +++ b/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; + } +}