From 5793a8cd003643974206e44ea752ab0966cfa8c0 Mon Sep 17 00:00:00 2001
From: Pim van den Berg
Date: Sat, 18 May 2013 16:05:43 +0200
Subject: integrate jsrrdgraph in CGP
---
detail.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
(limited to 'detail.php')
diff --git a/detail.php b/detail.php
index 5aa38de..c7df632 100644
--- a/detail.php
+++ b/detail.php
@@ -47,7 +47,12 @@ foreach($CONFIG['term'] as $key => $s) {
}
print "\n";
-printf(''."\n", $CONFIG['weburl'], build_url('graph.php', $_GET));
+if ($CONFIG['graph_type'] == 'canvas') {
+ chdir($CONFIG['webdir']);
+ include $CONFIG['webdir'].'/plugin/'.$plugin.'.php';
+} else {
+ printf(''."\n", $CONFIG['weburl'], build_url('graph.php', $_GET));
+}
echo '';
html_end();
--
cgit v1.1