move smarty compiled files to store/[data]/smarty3 - which puts all writeable areas of the server except the config file and logs under the "store" directory. We'll do logs at a future time.
This commit is contained in:
@@ -50,7 +50,7 @@ class FriendicaSmartyEngine implements ITemplateEngine {
|
||||
public function __construct(){
|
||||
$a = get_app();
|
||||
$basecompiledir = ((array_key_exists('smarty3_folder',$a->config['system'])) ? $a->config['system']['smarty3_folder'] : '');
|
||||
if (!$basecompiledir) $basecompiledir = dirname(__dir__)."/view/tpl/smarty3";
|
||||
if (!$basecompiledir) $basecompiledir = dirname(__dir__)."/store/[data]/smarty3";
|
||||
if (!is_dir($basecompiledir)) {
|
||||
echo "<b>ERROR:</b> folder <tt>$basecompiledir</tt> does not exist."; killme();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user