From 549ab51f310e9828ba14d17fa8627ea4721ccda2 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 16 Nov 2010 10:51:02 -0500 Subject: [PATCH] Improvements to BBB plugin installation procedure --- plugin/bbb/course_install.php | 2 +- plugin/bbb/install.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/bbb/course_install.php b/plugin/bbb/course_install.php index 80fb5dd161..87d477ec03 100644 --- a/plugin/bbb/course_install.php +++ b/plugin/bbb/course_install.php @@ -13,5 +13,5 @@ $r = Database::query($sql_course); $sql_course = "INSERT INTO $t_course (variable,value,category) VALUES ('big_blue_button_welcome_message','','plugins')"; $r = Database::query($sql_course); $t_tool = Database::get_course_table(TABLE_TOOL_LIST,$cdb); -$sql_course = "INSERT INTO $t_tool VALUES ((NULL, 'videoconference','../../plugin/bbb/start.php','visio.gif','".string2binary(api_get_setting('course_create_active_tools', 'videoconference'))."','0','squaregrey.gif','NO','_self','plugin','0'))"; +$sql_course = "INSERT INTO $t_tool VALUES (NULL, 'videoconference','../../plugin/bbb/start.php','visio.gif','".string2binary(api_get_setting('course_create_active_tools', 'videoconference'))."','0','squaregrey.gif','NO','_self','plugin','0')"; $r = Database::query($sql_course); \ No newline at end of file diff --git a/plugin/bbb/install.php b/plugin/bbb/install.php index 3946c5c216..3300b95204 100644 --- a/plugin/bbb/install.php +++ b/plugin/bbb/install.php @@ -38,7 +38,8 @@ while ($row = Database::fetch_assoc($res)) { $r = Database::query($sql_course); $sql_course = "INSERT INTO $t_course (variable,value,category) VALUES ('big_blue_button_welcome_message','','plugins')"; $r = Database::query($sql_course); - $t_tool = Database::get_course_table(TABLE_TOOL_LIST,$cdb); - $sql_course = "INSERT INTO $t_tool VALUES ((NULL, 'videoconference','../../plugin/bbb/start.php','visio.gif','".string2binary(api_get_setting('course_create_active_tools', 'videoconference'))."','0','squaregrey.gif','NO','_self','plugin','0'))"; + $t_tool = Database::get_course_table(TABLE_TOOL_LIST,$row['db_name']); + $sql_course = "INSERT INTO $t_tool VALUES (NULL, 'videoconference','../../plugin/bbb/start.php','visio.gif','".string2binary(api_get_setting('course_create_active_tools', 'videoconference'))."','0','squaregrey.gif','NO','_self','plugin','0')"; + error_log($sql_course); $r = Database::query($sql_course); }