Minor - format code

pull/3023/head
Julio 6 years ago
parent f945a797ee
commit 2a4d42e725
  1. 15
      main/admin/special_exports.php
  2. 7
      main/cron/import_csv.php
  3. 1
      plugin/vchamilo/lib/Virtual.php

@ -10,27 +10,23 @@ use Chamilo\CourseBundle\Component\CourseCopy\CourseSelectForm;
* @author Jhon Hinojosa
* @author Julio Montoya Fixing pclzip folder + some clean <gugli100@gmail.com>
*
* @package chamilo.include.export
*/
// including the global file
$cidReset = true;
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
$interbreadcrumb[] = ["url" => 'index.php', "name" => get_lang('PlatformAdmin')];
// Access restrictions
api_protect_admin_script(true);
api_set_more_memory_and_time_limits();
$this_section = SECTION_PLATFORM_ADMIN;
$interbreadcrumb[] = ['url' => 'index.php', 'name' => get_lang('PlatformAdmin')];
$nameTools = get_lang('SpecialExports');
$export = '';
$querypath = '';
api_set_more_memory_and_time_limits();
// Displaying the header
Display::display_header($nameTools);
// Display the tool title
echo Display::page_header($nameTools);
if (count($_POST) == 0) {
@ -146,7 +142,6 @@ if ($export && $name) {
}
}
/* FOOTER */
Display::display_footer();
function form_special_export()

@ -2662,9 +2662,7 @@ class ImportCsv
$externalEventId = null;
$extraField = new ExtraField('career');
$extraFieldInfo = $extraField->get_handler_field_info_by_field_variable(
$extraFieldName
);
$extraFieldInfo = $extraField->get_handler_field_info_by_field_variable($extraFieldName);
$careerDiagramExtraFieldName = $this->extraFieldIdNameList['career_diagram'];
$extraFieldDiagramInfo = $extraField->get_handler_field_info_by_field_variable(
@ -2676,7 +2674,7 @@ class ImportCsv
}
if (!empty($data)) {
$this->logger->addInfo(count($data)." records found.");
$this->logger->addInfo(count($data).' records found.');
$values = [];
foreach ($data as $row) {
if (empty($row)) {
@ -2707,7 +2705,6 @@ class ImportCsv
false
);
$chamiloCareerName = '';
if (empty($item)) {
$this->logger->addInfo("Career not found: $careerId");
continue;

@ -98,7 +98,6 @@ class Virtual
$data['WEB_HOME_PATH'] = self::addTrailingSlash($data['home_url']);
$data['WEB_UPLOAD_PATH'] = self::addTrailingSlash($data['upload_url']);
$data['WEB_ARCHIVE_PATH'] = self::addTrailingSlash($data['archive_url']);
//$data['WEB_COURSE_PATH'] = self::addTrailingSlash($data['course_url']);
if (!empty($passwordEncryption)) {
$_configuration['password_encryption'] = $passwordEncryption;

Loading…
Cancel
Save