diff --git a/main/admin/special_exports.php b/main/admin/special_exports.php index 5f6a754374..2d40b11ca4 100755 --- a/main/admin/special_exports.php +++ b/main/admin/special_exports.php @@ -66,7 +66,7 @@ if ((isset ($_POST['action']) && $_POST['action'] == 'course_select_form') || (i $Resource = $_POST['resource']; foreach ($Resource as $Code_course => $Sessions) { - $_course = Database::get_course_info($Code_course); + $_course = api_get_course_info($Code_course); $tbl_document = Database::get_course_table(TABLE_DOCUMENT); $tbl_property = Database::get_course_table(TABLE_ITEM_PROPERTY); $course_id = $_course['real_id']; diff --git a/main/coursecopy/classes/DummyCourseCreator.class.php b/main/coursecopy/classes/DummyCourseCreator.class.php index 413928f66f..3ef883e454 100755 --- a/main/coursecopy/classes/DummyCourseCreator.class.php +++ b/main/coursecopy/classes/DummyCourseCreator.class.php @@ -43,7 +43,7 @@ class DummyCourseCreator $this->default_property['start_visible'] = '0000-00-00 00:00:00'; $this->default_property['end_visible'] = '0000-00-00 00:00:00'; - $course = Database::get_course_info($course_code); + $course = api_get_course_info($course_code); $this->course = new Course(); $tmp_path = api_get_path(SYS_COURSE_PATH).$course['directory'].'/document/tmp_'.uniqid(''); @mkdir($tmp_path, api_get_permissions_for_new_directories(), true); diff --git a/main/gradebook/exercise_jump.php b/main/gradebook/exercise_jump.php index 7d8261548e..db154edf10 100755 --- a/main/gradebook/exercise_jump.php +++ b/main/gradebook/exercise_jump.php @@ -15,7 +15,7 @@ api_block_anonymous_users(); $this_section=SECTION_COURSES; $course_code = api_get_course_id(); -$course_info = Database::get_course_info($course_code); +$course_info = api_get_course_info($course_code); $course_title = $course_info['title']; $course_code = $return_result['code']; $gradebook = Security::remove_XSS($_GET['gradebook']); diff --git a/main/newscorm/aicc.class.php b/main/newscorm/aicc.class.php index a547c51ffe..e9c99a59d6 100755 --- a/main/newscorm/aicc.class.php +++ b/main/newscorm/aicc.class.php @@ -640,7 +640,7 @@ class aicc extends learnpath require_once 'learnpath_functions.inc.php'; $course_id = api_get_course_int_id(); $tbl_lp = Database::get_course_table(TABLE_LP_MAIN); - $_course = Database::get_course_info(api_get_course_id()); + $_course = api_get_course_info(api_get_course_id()); $sql = "SELECT * FROM $tbl_lp WHERE c_id = ".$course_id." id=".$lp_id; $result = Database::query($sql); diff --git a/main/newscorm/scorm.class.php b/main/newscorm/scorm.class.php index aa29704892..8ca90fdc44 100755 --- a/main/newscorm/scorm.class.php +++ b/main/newscorm/scorm.class.php @@ -789,7 +789,7 @@ class scorm extends learnpath require_once 'learnpath_functions.inc.php'; $course_id = api_get_course_int_id(); $tbl_lp = Database::get_course_table(TABLE_LP_MAIN); - $_course = Database::get_course_info(api_get_course_id()); + $_course = api_get_course_info(api_get_course_id()); $sql = "SELECT * FROM $tbl_lp WHERE c_id = ".$course_id." AND id=".$lp_id; $result = Database::query($sql);