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 = '';