Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 245bd35

Browse files
committed
refs #71 changed extention to php for templates
1 parent f2f7417 commit 245bd35

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/classes/TemplateSet.class.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class TemplateSet {
4545
public $enable_caching = false;
4646
public $cache_timeout;
4747

48-
public $tpl_ext = 'tpl';
48+
public $tpl_ext = 'php';
4949
protected $vars = array();
5050

5151
/*public function __construct($path='')
@@ -209,12 +209,13 @@ public function get($tpl_name, $ret = false, $checkskin = true, $force_base = fa
209209
*
210210
*/
211211
public function getTemplate($tpl_name, $ret = false, $checkskin = true, $force_base = false) {
212-
/* See if the file has been over-rided in the skin directory
213-
*/
212+
214213
if (strstr($tpl_name, $this->tpl_ext) === false) {
215214
$tpl_name .= '.'.$this->tpl_ext;
216215
}
217216

217+
/* See if the file has been over-rided in the skin directory
218+
*/
218219
$tpl_path = $this->template_path . DS . $tpl_name;
219220
if($checkskin === true && $force_base === false) {
220221
if(file_exists($this->skin_path.DS.$tpl_name)) {

0 commit comments

Comments
 (0)