aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/graph.php
diff options
context:
space:
mode:
authorPim van den Berg2015-06-22 10:26:24 +0200
committerPim van den Berg2015-06-22 10:26:24 +0200
commit3fe58691d1891d2f850d94298d98f2b8d2b76c1c (patch)
tree780c22fba0d158af84354e64272a986bdb3319b2 /graph.php
parentMerge branch 'local_plugins' (diff)
downloadapt-panopticon_cgp-3fe58691d1891d2f850d94298d98f2b8d2b76c1c.zip
apt-panopticon_cgp-3fe58691d1891d2f850d94298d98f2b8d2b76c1c.tar.gz
apt-panopticon_cgp-3fe58691d1891d2f850d94298d98f2b8d2b76c1c.tar.bz2
apt-panopticon_cgp-3fe58691d1891d2f850d94298d98f2b8d2b76c1c.tar.xz
plugin: move local plugins from conf/plugin to plugin/local
Diffstat (limited to 'graph.php')
-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