From 354b40e59bb3faa5df495ecbb5ff95013ffffd63 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 10 Nov 2011 16:49:54 +0100 Subject: [PATCH] Forcing fatal errors if get_course_table() receives a second parameter (just for debugging) --- main/inc/lib/database.lib.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/inc/lib/database.lib.php b/main/inc/lib/database.lib.php index e9c5c0ad04..913ea26fe3 100644 --- a/main/inc/lib/database.lib.php +++ b/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); }