Commit 71be9a1ad7507832d5b25071af12f9172440c512

Authored by nbm
1 parent dcd8c1d4

Make the template used by kt3template a class variable


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4404 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/templating/kt3template.inc.php
@@ -43,6 +43,8 @@ class KTPage { @@ -43,6 +43,8 @@ class KTPage {
43 43
44 /** $contents is the center of the page. In KT < 3, this was CentralPayload. */ 44 /** $contents is the center of the page. In KT < 3, this was CentralPayload. */
45 var $contents = ''; 45 var $contents = '';
  46 +
  47 + var $template = "kt3/standard_page";
46 48
47 /* further initialisation */ 49 /* further initialisation */
48 function KTPage() { 50 function KTPage() {
@@ -233,7 +235,7 @@ class KTPage { @@ -233,7 +235,7 @@ class KTPage {
233 } 235 }
234 236
235 $oTemplating = new KTTemplating; 237 $oTemplating = new KTTemplating;
236 - $oTemplate = $oTemplating->loadTemplate("kt3/standard_page"); 238 + $oTemplate = $oTemplating->loadTemplate($this->template);
237 $aTemplateData = array( 239 $aTemplateData = array(
238 "page" => $this, 240 "page" => $this,
239 ); 241 );