Minor - format code, remove var_dumps

pull/3643/head
Julio Montoya 5 years ago
parent daf6e8e593
commit e96a132f1b
  1. 5
      main/gradebook/lib/fe/linkaddeditform.class.php
  2. 8
      main/inc/lib/agenda.lib.php
  3. 1
      main/lp/lp_view.php
  4. 1
      main/lp/openoffice_document.class.php
  5. 7
      main/template/default/learnpath/view.tpl
  6. 1
      main/work/upload_corrections.php

@ -128,11 +128,6 @@ class LinkAddEditForm extends FormValidator
$values['weight'] = $link->get_weight();
} else {
$cat = Category::load($parent_cat[0]->get_parent_id());
//$global_weight = $cat[0]->get_weight();
//$values['weight'] = $link->get_weight()/$parent_cat[0]->get_weight()*$global_weight;
//var_dump($global_weight, $link->get_weight(), $parent_cat[0]->get_weight());
//$weight = $parent_cat[0]->get_weight()* $link->get_weight() / $global_weight;
//$values['weight'] = $weight;
$values['weight'] = $link->get_weight();
}
$defaults['weight_mask'] = $values['weight'];

@ -528,7 +528,6 @@ class Agenda
// @todo remove comment code
$startDateInLocal = new DateTime($newStartDate, new DateTimeZone($timeZone));
//$originalOffset = $startDate->getOffset();
if ($startDateInLocal->format('I') == 0) {
// Is saving time? Then fix UTC time to add time
$seconds = $startDateInLocal->getOffset();
@ -536,14 +535,7 @@ class Agenda
$startDateFixed = $startDate->format('Y-m-d H:i:s');
$startDateInLocalFixed = new DateTime($startDateFixed, new DateTimeZone($timeZone));
$newStartDate = $startDateInLocalFixed->format('Y-m-d H:i:s');
} else {
/*$seconds = $startDateInLocal->getOffset();
$startDate->add(new DateInterval("PT".$seconds."S"));
$startDateFixed = $startDate->format('Y-m-d H:i:s');
$startDateInLocalFixed = new DateTime($startDateFixed, new DateTimeZone($timeZone));
$newStartDate = $startDateInLocalFixed->format('Y-m-d H:i:s');*/
}
//var_dump($newStartDate.' - '.$startDateInLocal->format('I'));
$endDateInLocal = new DateTime($newEndDate, new DateTimeZone($timeZone));
if ($endDateInLocal->format('I') == 0) {

@ -590,6 +590,7 @@ if (Tracking::minimumTimeAvailable(api_get_session_id(), api_get_course_int_id()
}
$template->assign('lp_accumulate_work_time', $lpMinTime);
$template->assign('lp_mode', $lp->mode);
$template->assign('lp_title_scorm', $lp->get_name());
if (api_get_configuration_value('lp_view_accordion') === true && $lpType == 1) {

@ -79,7 +79,6 @@ abstract class OpenofficeDocument extends learnpath
if ($ppt2lp_host == 'localhost') {
move_uploaded_file($file['tmp_name'], $this->base_work_dir.'/'.$this->file_path);
//var_dump( $this->base_work_dir.$this->created_dir.$this->file_path);
$perm = api_get_setting('permissions_for_new_files');
if (IS_WINDOWS_OS) { // IS_WINDOWS_OS has been defined in main_api.lib.php

@ -211,13 +211,6 @@
</div>
<script>
// document.querySelector('.menu-button').onclick = function(e) {
// e.preventDefault();
// document.querySelector('.circle').classList.toggle('open', function() {
// console.log('topo');
// });
// $('.menu-button').css('background', '#00829C');
// }
var LPViewUtils = {
setHeightLPToc: function () {
var scormInfoHeight = $('#scorm-info').outerHeight(true);

@ -142,7 +142,6 @@ if ($form->validate()) {
$finder = new Finder();
$finder->files()->in($destinationDir);
$table = Database::get_course_table(TABLE_STUDENT_PUBLICATION);
//var_dump($finalResult);
/** @var SplFileInfo $file */
foreach ($finder as $file) {
$fileName = $file->getBasename();

Loading…
Cancel
Save