diff --git a/main/exercice/exercise_admin.php b/main/exercice/exercise_admin.php index 15b3eebf0b..fe4ef7eef3 100644 --- a/main/exercice/exercise_admin.php +++ b/main/exercice/exercise_admin.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'); diff --git a/main/exercice/exercise_reminder.php b/main/exercice/exercise_reminder.php old mode 100755 new mode 100644 index f70e1e66cb..0615db902d --- a/main/exercice/exercise_reminder.php +++ b/main/exercice/exercise_reminder.php @@ -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';