From 71be9a1ad7507832d5b25071af12f9172440c512 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 12 Dec 2005 15:04:10 +0000 Subject: [PATCH] Make the template used by kt3template a class variable --- lib/templating/kt3template.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/templating/kt3template.inc.php b/lib/templating/kt3template.inc.php index 89b2633..50a6680 100644 --- a/lib/templating/kt3template.inc.php +++ b/lib/templating/kt3template.inc.php @@ -43,6 +43,8 @@ class KTPage { /** $contents is the center of the page. In KT < 3, this was CentralPayload. */ var $contents = ''; + + var $template = "kt3/standard_page"; /* further initialisation */ function KTPage() { @@ -233,7 +235,7 @@ class KTPage { } $oTemplating = new KTTemplating; - $oTemplate = $oTemplating->loadTemplate("kt3/standard_page"); + $oTemplate = $oTemplating->loadTemplate($this->template); $aTemplateData = array( "page" => $this, ); -- libgit2 0.21.4