Explorar el Código

[svn r13055] Fixes bug FS#1788

Yannick Warnier hace 17 años
padre
commit
3a62208eb8
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      main/admin/configure_extensions.php

+ 3 - 2
main/admin/configure_extensions.php

@@ -65,7 +65,8 @@ if(isset($_POST['activeExtension'])){
 					
 					if(!empty($_POST['visioconference_url']))
 					{
-						$sql = 'INSERT INTO '.$row['db_name'].'.'.TABLE_TOOL_LIST.' SET 
+						$tool_table = Database::get_course_table(TABLE_TOOL_LIST,$row['db_name']);
+						$sql = 'INSERT INTO '.$tool_table.' SET 
 								name="'.TOOL_VISIO_CONFERENCE.'",
 								link="conference/index.php?type=conference",
 								image="visio.gif",
@@ -79,7 +80,7 @@ if(isset($_POST['activeExtension'])){
 					}
 					if(!empty($_POST['visioclassroom_url']))
 					{
-						$sql = 'INSERT INTO '.$row['db_name'].'.'.TABLE_TOOL_LIST.' SET 
+						$sql = 'INSERT INTO '.$tool_table.' SET 
 								name="'.TOOL_VISIO_CLASSROOM.'",
 								link="conference/index.php?type=classroom",
 								image="visio.gif",