aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Render/SmartyTemplate.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-08-30 06:14:22 -0400
committerAndrew Manning <tamanning@zoho.com>2016-08-30 06:14:22 -0400
commitad5c93d6738d705b9ca196cc7481c26a3a9b9962 (patch)
treeca090d4dcb461dc46ba79d726c39cda388deeef6 /Zotlabs/Render/SmartyTemplate.php
parentb05474fc30cad393bd4fbf244d2afbbbe2e5f86e (diff)
parent202b757bc46d17b324f79751ce754e16ba737386 (diff)
downloadvolse-hubzilla-ad5c93d6738d705b9ca196cc7481c26a3a9b9962.tar.gz
volse-hubzilla-ad5c93d6738d705b9ca196cc7481c26a3a9b9962.tar.bz2
volse-hubzilla-ad5c93d6738d705b9ca196cc7481c26a3a9b9962.zip
Merge remote-tracking branch 'upstream/dev' into website-export
Diffstat (limited to 'Zotlabs/Render/SmartyTemplate.php')
-rwxr-xr-xZotlabs/Render/SmartyTemplate.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Render/SmartyTemplate.php b/Zotlabs/Render/SmartyTemplate.php
index b7e68c1bc..7abe0731c 100755
--- a/Zotlabs/Render/SmartyTemplate.php
+++ b/Zotlabs/Render/SmartyTemplate.php
@@ -15,7 +15,10 @@ class SmartyTemplate implements TemplateEngine {
? \App::$config['system']['smarty3_folder'] : '');
if (!$basecompiledir) $basecompiledir = str_replace('Zotlabs','',dirname(__dir__)) . "/" . TEMPLATE_BUILD_PATH;
if (!is_dir($basecompiledir)) {
- echo "<b>ERROR:</b> folder <tt>$basecompiledir</tt> does not exist."; killme();
+ @os_mkdir(TEMPLATE_BUILD_PATH, STORAGE_DEFAULT_PERMISSIONS, true);
+ if (!is_dir($basecompiledir)) {
+ echo "<b>ERROR:</b> folder <tt>$basecompiledir</tt> does not exist."; killme();
+ }
}
if(!is_writable($basecompiledir)){
echo "<b>ERROR:</b> folder <tt>$basecompiledir</tt> must be writable by webserver."; killme();