Browse Source

[svn r10202] replace get_course_tool_list_table with get_course_table(TABLE_TOOL_LIST) and remove the get_course_tool_list_table

Patrick Cool 18 years ago
parent
commit
24f54b0c45
2 changed files with 1 additions and 12 deletions
  1. 0 11
      main/inc/lib/database.lib.php
  2. 1 1
      main/newscorm/document.php

+ 0 - 11
main/inc/lib/database.lib.php

@@ -591,17 +591,6 @@ class Database
 	{
 		return mysql_num_rows($res);
 	}
-	
-	/**
-	*	Returns the name of the tool table of a course.
-	*	If no database parameter is present, the function works on the current course.
-	*/
-	function get_course_tool_list_table($database_name = '')
-	{
-		$database_name_with_glue = Database::fix_database_parameter($database_name);
-		
-		return Database::format_glued_course_table_name($database_name_with_glue, TABLE_TOOL_LIST);
-	}
 }
 //end class Database
 ?>

+ 1 - 1
main/newscorm/document.php

@@ -51,7 +51,7 @@ require_once('learnpathItem.class.php');
 // storing the tables names in variables.
 $tbl_document           = Database::get_course_table(TABLE_SCORMDOC);
 $tbl_learnpath_main     = Database::get_course_learnpath_main_table();
-$tbl_tool               = Database::get_course_tool_list_table();
+$tbl_tool               = Database::get_course_table(TABLE_TOOL_LIST);
 
 $default_visibility="v";
 $show_description_field=0;