X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffriendica_smarty.php;h=b5169267545b9f53ca3dc300e5ad850e4c57bea9;hb=58aeb1879b3fa0b3b1d0757d7c66c2a193dc70f7;hp=1326b0aca645ba5760296ed56bbaeab1c04d7708;hpb=6fddd1cbbff6de6dd88487698469a7f1b7f6854e;p=friendica.git
diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php
index 1326b0aca6..b516926754 100644
--- a/include/friendica_smarty.php
+++ b/include/friendica_smarty.php
@@ -45,6 +45,13 @@ class FriendicaSmarty extends Smarty {
class FriendicaSmartyEngine implements ITemplateEngine {
static $name ="smarty3";
+
+ public function __construct(){
+ if(!is_writable('view/smarty3/')){
+ echo "ERROR: folder view/smarty3/ must be writable by webserver."; killme();
+ }
+ }
+
// ITemplateEngine interface
public function replace_macros($s, $r) {
$template = '';