You need to sign in before continuing.
Commit e403931ba6daa742d4e037bb3b656bafc5ee2b2e
1 parent
01908ce0
Pass KTConfig to template as "config"
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3468 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
0 deletions
lib/templating/smartytemplate.inc.php
| ... | ... | @@ -38,6 +38,8 @@ class KTSmartyTemplate extends KTTemplate { |
| 38 | 38 | foreach ($aDict as $k => $v) { |
| 39 | 39 | $smarty->assign($k, $v); |
| 40 | 40 | } |
| 41 | + $KTConfig =& KTConfig::getSingleton(); | |
| 42 | + $smarty->assign("config", $KTConfig); | |
| 41 | 43 | $smarty->caching = false; |
| 42 | 44 | return $smarty->fetch($this->sPath); |
| 43 | 45 | } | ... | ... |