From ab316a7fb00d6662f56607103f4b58bc4cb25d39 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 29 Jan 2014 09:13:56 +0000 Subject: [PATCH] Change the include for smarty template engine to a require_once --- resources/classes/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/classes/template.php b/resources/classes/template.php index 5d65e306d4..dab07d44dc 100644 --- a/resources/classes/template.php +++ b/resources/classes/template.php @@ -40,14 +40,14 @@ include "root.php"; public function init() { if ($this->engine === 'smarty') { - include "resources/templates/engine/smarty/Smarty.class.php"; + require_once "resources/templates/engine/smarty/Smarty.class.php"; $this->object = new Smarty(); $this->object->setTemplateDir($this->template_dir); $this->object->setCompileDir($this->cache_dir); $this->object->setCacheDir($this->cache_dir); } if ($this->engine === 'raintpl') { - include "resources/templates/engine/raintpl/rain.tpl.class.php"; + require_once "resources/templates/engine/raintpl/rain.tpl.class.php"; $this->object = new RainTPL(); RainTPL::configure('tpl_dir', realpath($this->template_dir)."/"); RainTPL::configure('cache_dir', realpath($this->cache_dir)."/");