|
@@ 3347-3352 (lines=6) @@
|
| 3344 |
|
if ($this->debug > 0) { |
| 3345 |
|
error_log('New LP - In learnpath::get_link(' . $type . ',' . $item_id . ')', 0); |
| 3346 |
|
} |
| 3347 |
|
if (empty($item_id)) { |
| 3348 |
|
if ($this->debug > 2) { |
| 3349 |
|
error_log('New LP - In learnpath::get_link() - no item id given in learnpath::get_link(), using current: ' . $this->get_current_item_id(), 0); |
| 3350 |
|
} |
| 3351 |
|
$item_id = $this->get_current_item_id(); |
| 3352 |
|
} |
| 3353 |
|
|
| 3354 |
|
if (empty($item_id)) { |
| 3355 |
|
if ($this->debug > 2) { |
|
@@ 3354-3362 (lines=9) @@
|
| 3351 |
|
$item_id = $this->get_current_item_id(); |
| 3352 |
|
} |
| 3353 |
|
|
| 3354 |
|
if (empty($item_id)) { |
| 3355 |
|
if ($this->debug > 2) { |
| 3356 |
|
error_log('New LP - In learnpath::get_link() - no current item id found in learnpath object', 0); |
| 3357 |
|
} |
| 3358 |
|
//still empty, this means there was no item_id given and we are not in an object context or |
| 3359 |
|
//the object property is empty, return empty link |
| 3360 |
|
$item_id = $this->first(); |
| 3361 |
|
return ''; |
| 3362 |
|
} |
| 3363 |
|
|
| 3364 |
|
$file = ''; |
| 3365 |
|
$lp_table = Database::get_course_table(TABLE_LP_MAIN); |