Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent 4184102685
commit ab08b53e8f
  1. 1
      main/document/document_quota.php
  2. 9
      main/lp/lp_upload.php

@ -1,5 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* Document quota management script * Document quota management script
* @package chamilo.document * @package chamilo.document

@ -32,12 +32,10 @@ if (isset($_POST) && $is_error) {
); );
return false; return false;
unset($_FILES['user_file']); unset($_FILES['user_file']);
} else if ($_SERVER['REQUEST_METHOD'] == 'POST' && count($_FILES) > 0 && !empty($_FILES['user_file']['name'])) { } elseif ($_SERVER['REQUEST_METHOD'] == 'POST' && count($_FILES) > 0 && !empty($_FILES['user_file']['name'])) {
// A file upload has been detected, now deal with the file... // A file upload has been detected, now deal with the file...
// Directory creation. // Directory creation.
$stopping_error = false; $stopping_error = false;
$s = $_FILES['user_file']['name']; $s = $_FILES['user_file']['name'];
// Get name of the zip file without the extension. // Get name of the zip file without the extension.
@ -47,7 +45,10 @@ if (isset($_POST) && $is_error) {
$file_base_name = str_replace('.'.$extension, '', $filename); $file_base_name = str_replace('.'.$extension, '', $filename);
$new_dir = api_replace_dangerous_char(trim($file_base_name)); $new_dir = api_replace_dangerous_char(trim($file_base_name));
$type = learnpath::get_package_type($_FILES['user_file']['tmp_name'], $_FILES['user_file']['name']); $type = learnpath::get_package_type(
$_FILES['user_file']['tmp_name'],
$_FILES['user_file']['name']
);
$proximity = 'local'; $proximity = 'local';
if (!empty($_REQUEST['content_proximity'])) { if (!empty($_REQUEST['content_proximity'])) {

Loading…
Cancel
Save