aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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';