From a9676fc7d3f11230cc4be6d84eb4afb97f17ea46 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Mon, 28 May 2007 08:27:31 +0000 Subject: [PATCH] Create templates_c directory if it does not exist page.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@260 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- banana/page.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/banana/page.inc.php b/banana/page.inc.php index 7d313ef..fef0196 100644 --- a/banana/page.inc.php +++ b/banana/page.inc.php @@ -30,7 +30,9 @@ class BananaPage extends Smarty $this->template_dir = dirname(__FILE__) . '/templates/'; $this->compile_dir = Banana::$spool_root . '/templates_c/'; $this->register_prefilter('banana_trimwhitespace'); - + if (!is_dir($this->compile_dir)) { + mkdir($this->compile_dir); + } } /** Add an error message -- 2.1.4