mirror of
https://github.com/friendica/friendica
synced 2024-12-23 07:20:15 +00:00
Merge pull request #675 from fabrixxm/templateengine
check if view/smarty3 folder is writable by webserver
This commit is contained in:
commit
1e3455d71a
1 changed files with 7 additions and 0 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in a new issue