Browse Source

Minor - flint fixes

Julio 6 years ago
parent
commit
f851b9c927

+ 1 - 2
main/exercise/exercise.php

@@ -110,7 +110,7 @@ $nameTools = get_lang('Exercises');
 $errorXmlExport = null;
 if ($is_allowedToEdit && !empty($choice) && $choice === 'exportqti2') {
     if ($limitTeacherAccess && !api_is_platform_admin()) {
-       api_not_allowed(true);
+        api_not_allowed(true);
     }
     require_once api_get_path(SYS_CODE_PATH).'exercise/export/qti2/qti2_export.php';
 
@@ -249,7 +249,6 @@ if ($is_allowedToEdit) {
                                 GradebookUtils::remove_resource_from_course_gradebook($link_info['id']);
                             }
                             echo Display::return_message(get_lang('ExerciseDeleted'), 'confirmation');
-
                         }
                         break;
                     case 'enable':

+ 0 - 1
main/exercise/question_list_admin.inc.php

@@ -14,7 +14,6 @@ use ChamiloSession as Session;
  *    This script allows to manage the question list
  *    It is included from the script admin.php
  */
-
 $limitTeacherAccess = api_get_configuration_value('limit_exercise_teacher_access');
 
 // deletes a question from the exercise (not from the data base)

+ 3 - 3
main/inc/lib/tracking.lib.php

@@ -1614,7 +1614,8 @@ class Tracking
     }
 
     /**
-     * Checks if the "lp_minimum_time" feature is available for the course
+     * Checks if the "lp_minimum_time" feature is available for the course.
+     *
      * @param int $courseId
      *
      * @return bool
@@ -1625,8 +1626,7 @@ class Tracking
             $extraFieldValue = new ExtraFieldValue('course');
             $value = $extraFieldValue->get_values_by_handler_and_field_variable($courseId, 'new_tracking_system');
             if ($value && isset($value['value']) && $value['value'] == 1) {
-
-               return true;
+                return true;
             }
         }