]> git.mxchange.org Git - friendica.git/commitdiff
Merge remote branch 'upstream/master'
authorpixelroot <info@pixelbits.de>
Wed, 8 May 2013 09:09:39 +0000 (11:09 +0200)
committerpixelroot <info@pixelbits.de>
Wed, 8 May 2013 09:09:39 +0000 (11:09 +0200)
include/friendica_smarty.php

index 1326b0aca645ba5760296ed56bbaeab1c04d7708..b5169267545b9f53ca3dc300e5ad850e4c57bea9 100644 (file)
@@ -45,6 +45,13 @@ class FriendicaSmarty extends Smarty {
 
 class FriendicaSmartyEngine implements ITemplateEngine {
        static $name ="smarty3";
+       
+    public function __construct(){
+               if(!is_writable('view/smarty3/')){
+                       echo "<b>ERROR:</b> folder <tt>view/smarty3/</tt> must be writable by webserver."; killme();
+               }
+       } 
+    
        // ITemplateEngine interface
        public function replace_macros($s, $r) {
                $template = '';