aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-10-22 01:34:45 +0000
committerrvelices <rv-github@modusoptimus.com>2008-10-22 01:34:45 +0000
commit1c1a18ccba113c50a7ef4f52e455a104e0d28905 (patch)
treec4e5976d96776acbc72d174e53d1896712b1989b /include/template.class.php
parent8d9d904c67d23c007ec33b3758b5931fe0b12bdf (diff)
- 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/branches/2.0@2789 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/template.class.php3
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='')
{