no-session-on-cli: Pass known course id to api_get_course_setting() at Exercise constructor.

skala
Marco Villegas 12 years ago
parent 06e9ef93f4
commit 9daa5e5d10
  1. 4
      main/exercice/exercise.class.php

@ -148,8 +148,8 @@ class Exercise
} }
$this->course_id = $course_info['real_id']; $this->course_id = $course_info['real_id'];
$this->course = $course_info; $this->course = $course_info;
$this->fastEdition = api_get_course_setting('allow_fast_exercise_edition') == 1 ? true : false; $this->fastEdition = api_get_course_setting('allow_fast_exercise_edition', $course_info['code']) == 1 ? true : false;
$this->emailAlert = api_get_course_setting('email_alert_manager_on_new_quiz') == 1 ? true : false; $this->emailAlert = api_get_course_setting('email_alert_manager_on_new_quiz', $course_info['code']) == 1 ? true : false;
$this->hideQuestionTitle = 0; $this->hideQuestionTitle = 0;
} }

Loading…
Cancel
Save