diff --git a/main/inc/ajax/skill.ajax.php b/main/inc/ajax/skill.ajax.php index 4acd5d4ace..b13e0e1e17 100755 --- a/main/inc/ajax/skill.ajax.php +++ b/main/inc/ajax/skill.ajax.php @@ -74,7 +74,11 @@ switch ($action) { break; case 'get_course_info_popup': $course_info = api_get_course_info($_REQUEST['code']); - $courses = CourseManager::process_hot_course_item(array($course_info['real_id'])); + $courses = CourseManager::process_hot_course_item( + [ + ['c_id' => $course_info['real_id']] + ] + ); Display::display_no_header(); Display::$global_template->assign('hot_courses', $courses); echo Display::$global_template->fetch('default/layout/hot_course_item_popup.tpl'); diff --git a/main/template/default/layout/hot_course_item_popup.tpl b/main/template/default/layout/hot_course_item_popup.tpl index 90cad0a7ca..e7716cccc3 100755 --- a/main/template/default/layout/hot_course_item_popup.tpl +++ b/main/template/default/layout/hot_course_item_popup.tpl @@ -1,27 +1,23 @@ {% for hot_course in hot_courses %} {% if hot_course.extra_info.title %} -
- {{ hot_course.extra_info.description_button }} - {{ hot_course.extra_info.go_to_course_button }} - {{ hot_course.extra_info.register_button }} -
-+ {{ hot_course.extra_info.description_button }} + {{ hot_course.extra_info.go_to_course_button }} + {{ hot_course.extra_info.register_button }} +
+