check if view/smarty3 folder is writable by webserver

pull/675/head
Fabrixxm 2013-05-08 03:26:20 -04:00
rodzic 258604f036
commit 4bf41b8e5d
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -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/tpl/smarty3/</tt> must be writable by webserver."; killme();
}
}
// ITemplateEngine interface
public function replace_macros($s, $r) {
$template = '';