Minor - cosmetic changes

skala
Julio Montoya 12 years ago
parent 659cd5f82d
commit 1a2dccc11f
  1. 2
      main/newscorm/lp_upload.php
  2. 1
      main/upload/upload.scorm.php

@ -33,7 +33,7 @@ $is_error = isset($user_file['error']) ? $user_file['error'] : false;
if( Request::is_post() && $is_error){ if( Request::is_post() && $is_error){
return api_failure::set_failure('upload_file_too_big'); return api_failure::set_failure('upload_file_too_big');
unset($_FILEs['user_file']); unset($_FILEs['user_file']);
}else if ($_SERVER['REQUEST_METHOD'] == 'POST' && count($_FILES) > 0 && !empty($_FILES['user_file']['name'])) { } else if ($_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...

@ -13,6 +13,7 @@
$language_file = 'scorm'; $language_file = 'scorm';
$cwdir = getcwd(); $cwdir = getcwd();
require_once '../newscorm/lp_upload.php'; require_once '../newscorm/lp_upload.php';
//reinit current working directory as many functions in upload change it //reinit current working directory as many functions in upload change it
chdir($cwdir); chdir($cwdir);

Loading…
Cancel
Save