aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/graph.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--graph.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/graph.php b/graph.php
index 83d6caa..d4242ea 100644
--- a/graph.php
+++ b/graph.php
@@ -44,14 +44,14 @@ if(function_exists('json_decode'))
44 if (is_null($plugin_json)) 44 if (is_null($plugin_json))
45 error_log('CGP Error: invalid json in plugin/'.$plugin.'.json'); 45 error_log('CGP Error: invalid json in plugin/'.$plugin.'.json');
46 } 46 }
47 if (file_exists('conf/plugin/'.$plugin.'.json')) { 47 if (file_exists('plugin/local/'.$plugin.'.json')) {
48 $json = file_get_contents('conf/plugin/'.$plugin.'.json'); 48 $json = file_get_contents('plugin/local/'.$plugin.'.json');
49 $user_plugin_json = json_decode($json, true); 49 $plugin_json_local = json_decode($json, true);
50 50
51 if (is_null($user_plugin_json)) 51 if (is_null($plugin_json_local))
52 error_log('CGP Error: invalid json in conf/plugin/'.$plugin.'.json'); 52 error_log('CGP Error: invalid json in plugin/local/'.$plugin.'.json');
53 53
54 $plugin_json = array_replace_recursive($plugin_json, $user_plugin_json); 54 $plugin_json = array_replace_recursive($plugin_json, $plugin_json_local);
55 } 55 }
56} 56}
57 57