Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent e1cbea1597
commit 8bd317203a
  1. 2
      main/calendar/agenda_js.php
  2. 16
      main/exercise/Hpdownload.php
  3. 2
      main/inc/lib/agenda.lib.php
  4. 1
      main/inc/lib/internationalization.lib.php

@ -1,8 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
use ChamiloSession as Session;
/** /**
* @package chamilo.calendar * @package chamilo.calendar
*/ */

@ -81,22 +81,6 @@ if ($content_type == 'text/html') {
$fp = fopen($full_file_name, "r"); $fp = fopen($full_file_name, "r");
$file_content = fread ($fp, filesize ($full_file_name)); $file_content = fread ($fp, filesize ($full_file_name));
fclose($fp); fclose($fp);
//$file_content = api_replace_parameter($dir, $file_content, "src");
//$file_content = api_replace_parameter($dir, $file_content, "href");
/*
//parse line per line
$file_content_array = file($full_file_name);
foreach($file_content_array as $line)
{
$line = api_replace_parameter($dir, $line, "src");
$line = api_replace_parameter($dir, $line, "href");
$file_content .= $line;
}
*/
$exercisePath = api_get_self(); $exercisePath = api_get_self();
$exfile = explode('/',$exercisePath); $exfile = explode('/',$exercisePath);
$exfile = $exfile[sizeof($exfile)-1]; $exfile = $exfile[sizeof($exfile)-1];

@ -1387,7 +1387,6 @@ class Agenda
if (!empty($courses)) { if (!empty($courses)) {
foreach ($courses as $course) { foreach ($courses as $course) {
//if (api_is_coach($sessionId, $course['real_id'])) {
$this->getCourseEvents( $this->getCourseEvents(
$start, $start,
$end, $end,
@ -1397,7 +1396,6 @@ class Agenda
0, 0,
$color $color
); );
//}
} }
} }

@ -353,6 +353,7 @@ function _api_get_timezone()
$to_timezone = date_default_timezone_get(); $to_timezone = date_default_timezone_get();
// Second, see if a timezone has been chosen for the platform // Second, see if a timezone has been chosen for the platform
$timezone_value = api_get_setting('timezone_value', 'timezones'); $timezone_value = api_get_setting('timezone_value', 'timezones');
if ($timezone_value != null) { if ($timezone_value != null) {
$to_timezone = $timezone_value; $to_timezone = $timezone_value;
} }

Loading…
Cancel
Save