|
|
|
@ -104,6 +104,7 @@ class learnpathItem{ |
|
|
|
|
$this->db_id = $id; |
|
|
|
|
|
|
|
|
|
// get search_did |
|
|
|
|
if (api_get_setting('search_enabled')=='true') { |
|
|
|
|
$tbl_se_ref = Database::get_main_table(TABLE_MAIN_SEARCH_ENGINE_REF); |
|
|
|
|
$sql = 'SELECT * FROM %s WHERE course_code=\'%s\' AND tool_id=\'%s\' AND ref_id_high_level=%s AND ref_id_second_level=%d LIMIT 1'; |
|
|
|
|
// TODO: verify if it's possible to assume the actual course instead of getting it from db |
|
|
|
@ -113,6 +114,7 @@ class learnpathItem{ |
|
|
|
|
$se_ref = Database::fetch_array($res); |
|
|
|
|
$this->search_did = (int)$se_ref['search_did']; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$this->audio = $row['audio']; |
|
|
|
|
|
|
|
|
|
//error_log('New LP - End of learnpathItem constructor for item '.$id,0); |
|
|
|
|