From 554591bef7a1c67c1a1e21404670758e527cd57d Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Mon, 18 Nov 2013 00:05:54 +0000 Subject: [PATCH] added tpl_basedir() function for backwards compatibility --- tpl_functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tpl_functions.php b/tpl_functions.php index 49f96fe..a698def 100644 --- a/tpl_functions.php +++ b/tpl_functions.php @@ -244,6 +244,16 @@ if (!function_exists('tpl_incdir')) { } } +/** + * copied from core (available since Adora Belle) + */ +if (!function_exists('tpl_basedir')) { + function tpl_basedir() { + global $conf; + return DOKU_BASE.'lib/tpl/'.$conf['template'].'/'; + } +} + /** * does *not* emulate the core function, but returns only * if sidebar is set to make it roughly backwards compatible