Fixes fatal error when calling libs see #4081

skala
Julio Montoya 13 years ago
parent f114b2333f
commit 96fd85a633
  1. 2
      main/exercice/exercise_admin.php
  2. 6
      main/exercice/exercise_reminder.php

@ -145,7 +145,7 @@ $(document).ready(function () {
$objExercise = new Exercise();
//INIT FORM
if(isset($_GET['exerciseId'])) {
if (isset($_GET['exerciseId'])) {
$form = new FormValidator('exercise_admin', 'post', api_get_self().'?'.api_get_cidreq().'&exerciseId='.intval($_GET['exerciseId']));
$objExercise->read($_GET['exerciseId']);
$form->addElement('hidden','edit','true');

@ -11,14 +11,12 @@
/* INIT SECTION */
require_once 'exercise.class.php';
require_once 'exercise.lib.php';
require_once 'question.class.php';
require_once 'answer.class.php';
// Name of the language file that needs to be included
$language_file='exercice';
$language_file = 'exercice';
require_once '../inc/global.inc.php';
require_once 'exercise.lib.php';
if ($_GET['origin']=='learnpath') {
require_once '../newscorm/learnpath.class.php';

Loading…
Cancel
Save