X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffriendica_smarty.php;h=b5169267545b9f53ca3dc300e5ad850e4c57bea9;hb=26eceaacbe883b7ece20c0cfb5c724c8ba1a7d99;hp=1326b0aca645ba5760296ed56bbaeab1c04d7708;hpb=eef66da1453940ec646cae2de5cd863a2c10e24d;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 = '';