From d67c273583f09d275c06fddd556dd37b56372b83 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Mon, 31 Dec 2012 15:14:55 +0000 Subject: [PATCH] fixed missing tpl_incdir() leading to error in older DW versions --- tpl_functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tpl_functions.php b/tpl_functions.php index 74df26a..6d49f97 100644 --- a/tpl_functions.php +++ b/tpl_functions.php @@ -233,3 +233,13 @@ if (!function_exists('tpl_includeFile')) { } } } + +/** + * copied from core (available since Adora Belle) + */ +if (!function_exists('tpl_incdir')) { + function tpl_incdir() { + global $conf; + return DOKU_INC.'lib/tpl/'.$conf['template'].'/'; + } +}