Browse Source

Forcing fatal errors if get_course_table() receives a second parameter (just for debugging)

Julio Montoya 13 years ago
parent
commit
354b40e59b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      main/inc/lib/database.lib.php

+ 4 - 1
main/inc/lib/database.lib.php

@@ -155,6 +155,7 @@ class Database {
     }
 
     /**
+
      * A more generic method than the older get_course_xxx_table methods,
      * This one can return the correct complete name of any course table of which you pass
      * the short name as a parameter.
@@ -165,7 +166,9 @@ class Database {
      * @param string $database_name, optional, name of the course database
      * - if you don't specify this, you work on the current course.
      */
-    public static function get_course_table($short_table_name, $database_name = '') {
+    //public static function get_course_table($short_table_name, $database_name = '') {
+    //forces fatal errors so we can debug more easily        
+    public static function get_course_table($short_table_name) {
     	return self::format_table_name(self::get_main_database(), DB_COURSE_PREFIX.$short_table_name);
         //return self::format_glued_course_table_name(self::fix_database_parameter($database_name), $short_table_name);
     }