From: Fabrixxm Date: Wed, 8 May 2013 07:26:20 +0000 (-0400) Subject: check if view/smarty3 folder is writable by webserver X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4bf41b8e5db7c933f1b8cd3738c32a375866d4b5;p=friendica.git check if view/smarty3 folder is writable by webserver --- diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php index 1326b0aca6..021feea2ac 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/tpl/smarty3/ must be writable by webserver."; killme(); + } + } + // ITemplateEngine interface public function replace_macros($s, $r) { $template = '';