Minor - Format code

pull/2484/merge
jmontoyaa 8 years ago
parent 07559c0af3
commit ff18ff4d00
  1. 2
      main/exercise/exercise.class.php
  2. 5
      main/exercise/exercise_report.php
  3. 3
      plugin/notebookteacher/src/NotebookTeacherPlugin.php

@ -3388,7 +3388,7 @@ class Exercise
$calculatedChoice = '';
$calculatedStatus = '';
$questionId = (int) $questionId;
$exeId = (int) $exeId;
$exeId = (int) $exeId;
$TBL_TRACK_ATTEMPT = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT);
$table_ans = Database::get_course_table(TABLE_QUIZ_ANSWER);

@ -43,7 +43,10 @@ $path = isset($_GET['path']) ? Security::remove_XSS($_GET['path']) : null;
/* Constants and variables */
$is_allowedToEdit = api_is_allowed_to_edit(null, true) || api_is_drh() || api_is_student_boss() || api_is_session_admin();
$is_allowedToEdit = api_is_allowed_to_edit(null, true) ||
api_is_drh() ||
api_is_student_boss() ||
api_is_session_admin();
$is_tutor = api_is_allowed_to_edit(true);
$TBL_TRACK_EXERCISES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);

@ -8,7 +8,6 @@
*
* @author Jose Angel Ruiz <desarrollo@nosolored.com>
* @author Julio Montoya
*
*/
class NotebookTeacherPlugin extends Plugin
{
@ -81,7 +80,7 @@ class NotebookTeacherPlugin extends Plugin
public function uninstall()
{
// Deleting course settings.
$this->uninstall_course_fields_in_all_courses($this->course_settings);
$this->uninstall_course_fields_in_all_courses();
$tablesToBeDeleted = [self::TABLE_NOTEBOOKTEACHER];
foreach ($tablesToBeDeleted as $tableToBeDeleted) {

Loading…
Cancel
Save