Fixing bug in commit 65395a7baf in using function not in include stack

skala
Yannick Warnier 14 years ago
parent 450f0ba14c
commit 8104c725e8
  1. 2
      main/exercice/exercise.lib.php
  2. 3
      main/inc/lib/events.lib.inc.php

@ -10,7 +10,7 @@
*/
// The initialization class for the online editor is needed here.
require_once '../inc/lib/fckeditor/fckeditor.php';
require_once dirname(__FILE__).'/../inc/lib/fckeditor/fckeditor.php';
/**
* @param int question id

@ -418,7 +418,8 @@ function create_event_exercice($exo_id) {
$row_exe_id=Database::fetch_row($res_exe_id);
$exercise_id = intval($row_exe_id[0]);
// get expired_date
// get expired_date
require_once api_get_path(SYS_CODE_PATH).'exercice/exercise.lib.php';
$current_expired_time_key = get_time_control_key($exercise_id);
if (isset($_SESSION['expired_time'][$current_expired_time_key])) { //Only for exercice of type "One page"

Loading…
Cancel
Save