removing option from template parser to directly load template files
into a file. its not being used and causes a file_exists() on all varspull/20/head
parent
a2272c579c
commit
c415371e5d
|
@ -93,9 +93,6 @@ class Template {
|
|||
}
|
||||
|
||||
foreach($data as $key => $value) {
|
||||
// check if $value is a file
|
||||
$value = (file_exists($value)) ? $this->parseFile($value) : $value;
|
||||
|
||||
$this->templates[$id] = str_replace('{'.$key.'}', $value, $this->templates[$id]);
|
||||
}
|
||||
return $this->templates[$id];
|
||||
|
|
Loading…
Reference in New Issue