From 0f1292535f5c4b202ed99c3397dc5a55cfc6f602 Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Mon, 16 Apr 2007 10:13:10 +0200 Subject: [PATCH] [svn r12027] Fix a bug with singe database mode --- main/newscorm/learnpath.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 55e29b5306..f0eee572ee 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -106,10 +106,7 @@ class learnpath { else { //TODO make it flexible to use any course_code (still using env course code here) - //$lp_table = Database::get_course_table(LEARNPATH_TABLE); - $lp_db = Database::get_current_course_database(); - $lp_pref = Database::get_course_table_prefix(); - $lp_table = $lp_db.'.'.$lp_pref.'lp'; + $lp_table = Database::get_course_table('lp'); //$id = Database::escape_integer($id); $lp_id = $this->escape_string($lp_id);