[svn r13780] Fixes around student_view feature:

- limited to inside a course (when $_cid is defined)
- changed the name of the variable used (the other one will be eliminated)
- removal of the useless parameter to api_display_tool_view_option()
skala
Yannick Warnier 18 years ago
parent 7e30ad6256
commit ffb72a4563
  1. 9
      main/inc/banner.inc.php

@ -130,12 +130,13 @@ if ((api_get_setting('showonline','world') == "true" AND !$_user['user_id']) OR
echo '</li>';
}
if ($_user['user_id'])
if ($_user['user_id'] && isset($_cid))
{
if (api_is_course_admin() && api_get_setting('show_student_view') == 'true')
if (api_is_course_admin() && api_get_setting('student_view_enabled') == 'true')
{
echo '<li>|';
api_display_tool_view_option($_GET['isStudentView']);
echo '<li>| ';
api_display_tool_view_option();
echo '</li>';
}
}

Loading…
Cancel
Save