From 6a267db982509d7fb65a8942e74bafbe789f934a Mon Sep 17 00:00:00 2001 From: Fayland Lam Date: Mon, 9 Nov 2015 18:47:01 +0800 Subject: [PATCH] for new smarty --- Smarty.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Smarty.php b/Smarty.php index 1f5f9da..51310b6 100644 --- a/Smarty.php +++ b/Smarty.php @@ -107,15 +107,15 @@ public function getInstance() } $this->parserInstance = new \Smarty(); - $this->parserInstance->template_dir = $this->getTemplatesDirectory(); + $this->parserInstance->setTemplateDir($this->getTemplatesDirectory()); if ($this->parserExtensions) { $this->parserInstance->addPluginsDir($this->parserExtensions); } if ($this->parserCompileDirectory) { - $this->parserInstance->compile_dir = $this->parserCompileDirectory; + $this->parserInstance->setCompileDir($this->parserCompileDirectory); } if ($this->parserCacheDirectory) { - $this->parserInstance->cache_dir = $this->parserCacheDirectory; + $this->parserInstance->setCacheDir($this->parserCacheDirectory); } }