Created
July 27, 2015 08:23
-
-
Save alpharder/182fc5c73bb8eace0b18 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/functions/fn.init.php b/app/functions/fn.init.php | |
index bfc5d9b..75402b0 100644 | |
--- a/app/functions/fn.init.php | |
+++ b/app/functions/fn.init.php | |
@@ -49,6 +49,9 @@ function fn_init_templater($area = AREA) | |
*/ | |
fn_set_hook('init_templater', $view); | |
+ $view->_dir_perms = DEFAULT_DIR_PERMISSIONS; | |
+ $view->_file_perms = DEFAULT_FILE_PERMISSIONS; | |
+ | |
$view->registerResource('tygh', new Tygh\SmartyEngine\FileResource()); | |
if ($area == 'A') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/Tygh/SmartyEngine/Core.php b/app/Tygh/SmartyEngine/Core.php | |
index b3eee69..34ac367 100644 | |
--- a/app/Tygh/SmartyEngine/Core.php | |
+++ b/app/Tygh/SmartyEngine/Core.php | |
@@ -26,8 +26,6 @@ class Core extends \Smarty | |
public $default_resource_type = 'tygh'; | |
public $merge_compiled_includes = false; | |
public $escape_html = true; | |
- public $_dir_perms = 0777; | |
- public $_file_perms = 0666; | |
public $template_area = ''; | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment