Minor - format code

pull/2874/head
Julio 7 years ago
parent 084a9056d2
commit b7d3b07722
  1. 2
      main/admin/course_list.php
  2. 3
      main/document/downloadfolder.inc.php
  3. 1
      main/exercise/exercise.class.php
  4. 1
      main/lp/lp_edit.php

@ -209,7 +209,7 @@ function get_course_data($from, $number_of_items, $column, $direction)
$path.'admin/course_list.php?delete_course='.$courseCode, $path.'admin/course_list.php?delete_course='.$courseCode,
[ [
'onclick' => "javascript: if (!confirm('" 'onclick' => "javascript: if (!confirm('"
.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES))."')) return false;" .addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES))."')) return false;",
] ]
); );

@ -175,8 +175,6 @@ if (api_is_allowed_to_edit()) {
} }
} }
} }
//error_log($sysCoursePath.$courseInfo['path'].'/document'.$not_deleted_file['path']);
//error_log($sysCoursePath.$courseInfo['path'].'/document'.$remove_dir);
$zip->add( $zip->add(
$sysCoursePath.$courseInfo['path'].'/document'.$not_deleted_file['path'], $sysCoursePath.$courseInfo['path'].'/document'.$not_deleted_file['path'],
PCLZIP_OPT_REMOVE_PATH, PCLZIP_OPT_REMOVE_PATH,
@ -189,7 +187,6 @@ if (api_is_allowed_to_edit()) {
Session::erase('doc_files_to_download'); Session::erase('doc_files_to_download');
} else { } else {
// For other users, we need to create a zip file with only visible files and folders // For other users, we need to create a zip file with only visible files and folders
if ($path == '/') { if ($path == '/') {
$querypath = ''; // To prevent ...path LIKE '//%'... in query $querypath = ''; // To prevent ...path LIKE '//%'... in query
} else { } else {

@ -6550,6 +6550,7 @@ class Exercise
if ($isRandomByCategory == 1) { if ($isRandomByCategory == 1) {
shuffle($questionList); // or not shuffle($questionList); // or not
} }
return $questionList; return $questionList;
} }

@ -158,7 +158,6 @@ $form->addElement('html', '<div class="help-block">'.get_lang('LpPrerequisiteDes
$form->addElement('html', '</div>'); $form->addElement('html', '</div>');
$form->addElement('html', '<div class="col-md-2"></div>'); $form->addElement('html', '<div class="col-md-2"></div>');
$form->addElement('html', '</div>'); $form->addElement('html', '</div>');
// Time Control // Time Control
if (Tracking::minimunTimeAvailable(api_get_session_id(), api_get_course_int_id())) { if (Tracking::minimunTimeAvailable(api_get_session_id(), api_get_course_int_id())) {
$accumulateTime = $_SESSION['oLP']->getAccumulateWorkTime(); $accumulateTime = $_SESSION['oLP']->getAccumulateWorkTime();

Loading…
Cancel
Save