Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent e4fc0627b9
commit d90d6c9150
  1. 21
      main/inc/lib/course.lib.php
  2. 2
      main/inc/lib/userportal.lib.php

@ -3981,10 +3981,6 @@ class CourseManager
$objUser = $entityManager->find('ChamiloUserBundle:User', $user_id);
$objCourse = $entityManager->find('ChamiloCoreBundle:Course', $course['real_id']);
$objSession = $entityManager->find('ChamiloCoreBundle:Session', $session_id);
/*$date_start = $sess[$course_info['id_session']]['access_start_date'];
$date_end = $sess[$course_info['id_session']]['access_end_date'];*/
$now = date('Y-m-d h:i:s');
// Table definitions
@ -4009,7 +4005,6 @@ class CourseManager
// Display course entry.
// Show a hyperlink to the course, unless the course is closed and user is not course admin.
$session_url = '';
$session_title = '';
$params = array();
$params['icon'] = Display::return_icon(
@ -4051,8 +4046,9 @@ class CourseManager
}
} else {
$session_title = $course_info['name'] . ' ' . Display::tag('span', get_lang('CourseClosed'),
array('class' => 'item_closed'));
$session_title =
$course_info['name'] . ' ' .
Display::tag('span', get_lang('CourseClosed'), array('class' => 'item_closed'));
}
} else {
$session_title = $course_info['name'];
@ -4092,12 +4088,11 @@ class CourseManager
}
}
if (api_get_setting('display_coursecode_in_courselist') == 'true') {
if (api_get_setting('display_coursecode_in_courselist') === 'true') {
$session_title .= ' (' . $course_info['visual_code'] . ') ';
}
if (api_get_setting('display_teacher_in_courselist') === 'true') {
$teacher_list = CourseManager::getTeachersFromCourseByCode(
$course_info['code']
);
@ -4106,14 +4101,6 @@ class CourseManager
$course_info['id_session'],
$course_info['real_id']
);
/* if ($course_info['status'] == COURSEMANAGER ||
($course_info['status'] == STUDENT && empty($course_info['id_session'])) ||
empty($course_info['status'])
) {
$params['teachers'] = $teacher_list;
}
*/
$params['teachers'] = $teacher_list;
if (($course_info['status'] == STUDENT && !empty($course_info['id_session'])) ||

@ -1469,7 +1469,7 @@ class IndexManager
);
} else {
$sessions_with_no_category = $this->tpl->fetch(
$this->tpl->get_template('/user_portal/classic_session.tpl')
$this->tpl->get_template('user_portal/classic_session.tpl')
);
}
}

Loading…
Cancel
Save