X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fpage.inc.php;h=fef01968d2f4cea3fe5c8a19175e456ff6a2cfe8;hb=a9676fc7d3f11230cc4be6d84eb4afb97f17ea46;hp=7d313efd5f3a8f229f72de04a06ab32feccb8c96;hpb=a09d81f41cc8de8ed113e2acbf1c4a6906a4d31c;p=banana.git 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