From ad27e26c4832b31a93a711e1f85a54c2e8e6be08 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 29 Apr 2010 16:02:20 +0000 Subject: 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 --- include/template.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'; -- cgit v1.2.3