Replace Database::get_course_info with api_get_course_info()

1.10.x
Julio Montoya 10 years ago
parent bde896ab53
commit aa4a022449
  1. 2
      main/admin/special_exports.php
  2. 2
      main/coursecopy/classes/DummyCourseCreator.class.php
  3. 2
      main/gradebook/exercise_jump.php
  4. 2
      main/newscorm/aicc.class.php
  5. 2
      main/newscorm/scorm.class.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'];

@ -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);

@ -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']);

@ -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);

@ -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);

Loading…
Cancel
Save