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