From dcd4911e24c6e01c3b83310ecf90ee7c01ed7ad4 Mon Sep 17 00:00:00 2001
From: Michael Hamann <michael@content-space.de>
Date: Tue, 17 Sep 2013 16:45:51 +0200
Subject: [PATCH] Fix tpl_basedir to use the supplied template

Previously only the path for the configured template was returned and
the parameter was ignored.
---
 inc/template.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/template.php b/inc/template.php
index 8f41ce65b..6eadd37e6 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -54,7 +54,7 @@ function tpl_incdir($tpl='') {
 function tpl_basedir($tpl='') {
     global $conf;
     if(!$tpl) $tpl = $conf['template'];
-    return DOKU_BASE.'lib/tpl/'.$conf['template'].'/';
+    return DOKU_BASE.'lib/tpl/'.$tpl.'/';
 }
 
 /**
-- 
GitLab