aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-29 16:02:20 +0000
committerplegall <plg@piwigo.org>2010-04-29 16:02:20 +0000
commitad27e26c4832b31a93a711e1f85a54c2e8e6be08 (patch)
tree9cdb631457ad85522b1540daaf5b3b70ae5d0cee /include/template.class.php
parentb8d3c9dba4a5489cf9ba4c856cce96bc666a6714 (diff)
bug 860 related: don't try to update the configuration during install because
pwg_query is not available yet. git-svn-id: http://piwigo.org/svn/trunk@5999 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/template.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/template.class.php b/include/template.class.php
index dec4a9063..3898b43da 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -67,7 +67,9 @@ class Template {
false // show trace
);
}
- conf_update_param('local_data_dir_checked', 'true');
+ if (function_exists('pwg_query')) {
+ conf_update_param('local_data_dir_checked', 'true');
+ }
}
$compile_dir = $conf['local_data_dir'].'/templates_c';