From 37fce9ceaa1c08353db55b2d4e81becbfada9fef Mon Sep 17 00:00:00 2001 From: jmontoya Date: Wed, 3 Jul 2013 17:55:34 +0200 Subject: [PATCH] Replacing "../img" with Display::return_icon() --- main/newscorm/learnpath.class.php | 31 ++++++++++++++++----------- main/newscorm/lp_edit_item_prereq.php | 5 +++-- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index e8cdda6cca..41ec6c3bf4 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -5441,7 +5441,7 @@ class learnpath 'id' => $array[$i]['id'], 'item_type' => $array[$i]['item_type'], 'title' => $array[$i]['title'], - 'path' => $array[$i]['path'], + 'path' => isset($array[$i]['path']) ? $array[$i]['path'] : null, 'description' => $array[$i]['description'], 'parent_item_id' => $array[$i]['parent_item_id'], 'previous_item_id' => $array[$i]['previous_item_id'], @@ -6059,6 +6059,8 @@ class learnpath */ public function build_tree() { + $iconSysPath = api_get_path(SYS_CODE_PATH).'img/'; + $iconWebPath = api_get_path(WEB_IMG_PATH); $course_id = api_get_course_int_id(); $return = "