Minor - Removing libs already included in global.inc + removing Display::header when using api_not_allowed()

skala
Julio Montoya 13 years ago
parent a7a7c25b92
commit 500d4b7efd
  1. 2
      main/tracking/courseLog.php
  2. 1
      main/tracking/course_session_report.php
  3. 2
      main/tracking/exams.php
  4. 0
      main/tracking/userLog.php

@ -29,9 +29,7 @@ if ($from == 'myspace') {
$is_allowedToTrack = api_is_platform_admin() || api_is_allowed_to_create_course() || api_is_session_admin() || api_is_drh() || api_is_course_tutor();
if (!$is_allowedToTrack) {
Display :: display_header(null);
api_not_allowed();
Display :: display_footer();
exit;
}

@ -9,7 +9,6 @@
$language_file = array ('registration', 'index', 'tracking', 'exercice','survey');
$cidReset = true;
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'pear/Spreadsheet_Excel_Writer/Writer.php';
require_once api_get_path(SYS_CODE_PATH).'exercice/exercise.class.php';

@ -17,9 +17,7 @@ $this_section = SECTION_TRACKING;
$is_allowedToTrack = $is_courseAdmin || $is_platformAdmin || $is_courseCoach || $is_sessionAdmin;
if(!$is_allowedToTrack) {
Display :: display_header(null);
api_not_allowed();
Display :: display_footer();
}
$export_to_xls = false;

Loading…
Cancel
Save