From e403931ba6daa742d4e037bb3b656bafc5ee2b2e Mon Sep 17 00:00:00 2001 From: nbm Date: Tue, 26 Jul 2005 18:28:43 +0000 Subject: [PATCH] Pass KTConfig to template as "config" --- lib/templating/smartytemplate.inc.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/templating/smartytemplate.inc.php b/lib/templating/smartytemplate.inc.php index 2054f15..015262b 100644 --- a/lib/templating/smartytemplate.inc.php +++ b/lib/templating/smartytemplate.inc.php @@ -38,6 +38,8 @@ class KTSmartyTemplate extends KTTemplate { foreach ($aDict as $k => $v) { $smarty->assign($k, $v); } + $KTConfig =& KTConfig::getSingleton(); + $smarty->assign("config", $KTConfig); $smarty->caching = false; return $smarty->fetch($this->sPath); } -- libgit2 0.21.4