diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-10-22 01:36:11 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-10-22 01:36:11 +0000 |
commit | f7aea6eb4c6a440a88e46dd5e081c1d4327440b9 (patch) | |
tree | 9fc9062a639895f07ec270d0838514fdab4b18b0 /include/template.class.php | |
parent | 33322d4bd0f5e957a866926ff891c662ca825475 (diff) |
merge r2789 from branch 2.0:
- some german language changes
- added option for smarty $conf['template_compile_check'] - default true; if false smarty doesn't check if templates need recompilation resulting in less disk accesses (good when the disk is not local)
- load_language doesnt check first for en_uk.utf-8 directory ...
git-svn-id: http://piwigo.org/svn/trunk@2790 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/template.class.php')
-rw-r--r-- | include/template.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/template.class.php b/include/template.class.php index fafbf7670..e641d3cb8 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -55,6 +55,7 @@ class Template { $this->smarty = new Smarty; $this->smarty->debugging = $conf['debug_template']; + $this->smarty->compile_check=$conf['template_compile_check']; $compile_dir = $conf['local_data_dir'].'/templates_c'; mkgetdir( $compile_dir ); @@ -205,7 +206,7 @@ class Template { } return true; } - + /** return template extension if exists */ function get_extent($filename='', $handle='') { |