From c415371e5dc46c47c9d259343ef6ac6f9b6d1b8d Mon Sep 17 00:00:00 2001 From: Pepijn Over Date: Sun, 9 Feb 2014 12:19:44 +0100 Subject: [PATCH] removing option from template parser to directly load template files into a file. its not being used and causes a file_exists() on all vars --- src/psm/Service/Template.class.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/psm/Service/Template.class.php b/src/psm/Service/Template.class.php index f67c9624..642345a9 100755 --- a/src/psm/Service/Template.class.php +++ b/src/psm/Service/Template.class.php @@ -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];