Commit 8d04edd0e0997a23313e74e888093975eefa1848

Authored by Neil Blakey-Milner
1 parent 6dc0ec24

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 43  
44 44 /** $contents is the center of the page. In KT < 3, this was CentralPayload. */
45 45 var $contents = '';
  46 +
  47 + var $template = "kt3/standard_page";
46 48  
47 49 /* further initialisation */
48 50 function KTPage() {
... ... @@ -233,7 +235,7 @@ class KTPage {
233 235 }
234 236  
235 237 $oTemplating = new KTTemplating;
236   - $oTemplate = $oTemplating->loadTemplate("kt3/standard_page");
  238 + $oTemplate = $oTemplating->loadTemplate($this->template);
237 239 $aTemplateData = array(
238 240 "page" => $this,
239 241 );
... ...