From: x2003bruneau Date: Mon, 28 May 2007 08:27:31 +0000 (+0000) Subject: Create templates_c directory if it does not exist X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7db77cbdf5c9756a7f956ab9dfc2def973e20580;p=banana.git 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 --- 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