From 606ad078974a728bbadfcfe3de9322845f4e426d Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 6 May 2015 18:07:16 -0500 Subject: [PATCH] Remove tutor contact mail if show_session_coach setting is false - refs BT#9848 --- main/auth/courses_controller.php | 1 + main/template/default/auth/sessions_catalog.tpl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/main/auth/courses_controller.php b/main/auth/courses_controller.php index 0ae3470444..ee0fbdb5e5 100755 --- a/main/auth/courses_controller.php +++ b/main/auth/courses_controller.php @@ -600,6 +600,7 @@ class CoursesController $tpl->assign('action', $action); $tpl->assign('showCourses', CoursesAndSessionsCatalog::showCourses()); $tpl->assign('showSessions', CoursesAndSessionsCatalog::showSessions()); + $tpl->assign('showTutor', (api_get_setting('show_session_coach')==='true' ? true : false)); $tpl->assign('api_get_self', api_get_self()); $tpl->assign('sessionUrl', $sessionUrl); $tpl->assign('courseUrl', $courseUrl); diff --git a/main/template/default/auth/sessions_catalog.tpl b/main/template/default/auth/sessions_catalog.tpl index 5105b5dbe6..f652633158 100644 --- a/main/template/default/auth/sessions_catalog.tpl +++ b/main/template/default/auth/sessions_catalog.tpl @@ -121,9 +121,11 @@
+ {% if showTutor %}
{{ 'GeneralCoach' | get_lang }} {{ session.coach_name }}
+ {% endif %} {{ 'CourseList' | get_lang }}