From c7fbf266e59fd3da9d020dcfd2d842b4882ad8ec Mon Sep 17 00:00:00 2001 From: nbm Date: Fri, 22 Jul 2005 20:47:28 +0000 Subject: [PATCH] Add the ability to add locations programmatically. --- lib/templating/templating.inc.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+), 0 deletions(-) diff --git a/lib/templating/templating.inc.php b/lib/templating/templating.inc.php index 2acdab8..b1d6d62 100644 --- a/lib/templating/templating.inc.php +++ b/lib/templating/templating.inc.php @@ -97,6 +97,20 @@ class KTTemplating { return new $sClass($sTemplatePath); } // }}} + + // {{{ addLocation + function addLocation ($descr, $loc) { + $this->aLocationRegistry[$descr] = $loc; + } + // }}} + + // {{{ getSingleton + function &getSingleton () { + global $oKTTemplating; + return $oKTTemplating; + } + // }}} } +$oKTTemplating =& new KTTemplating; ?> -- libgit2 0.21.4