Minor: Documents: Fix some var names - refs BT#17861

pull/3556/head
carlos alvarado 5 years ago
parent 563b0d008c
commit 7b19977dce
  1. 4
      main/document/document.php
  2. 2
      main/inc/lib/document.lib.php

@ -263,7 +263,7 @@ switch ($action) {
if (!empty($documentInfo)) {
$file = $_FILES['file_'.$fileTarget];
if ($documentInfo['filetype'] == 'file') {
$deleteDocument = DocumentManager::writeContentIntoDocument(
$updateDocument = DocumentManager::writeContentIntoDocument(
$courseInfo,
null,
$base_work_dir,
@ -272,7 +272,7 @@ switch ($action) {
$groupIid,
$file
);
if ($deleteDocument) {
if ($updateDocument) {
Display::addFlash(
Display::return_message(
get_lang('DownloadEnd').': '.$documentInfo['title'],

@ -6785,7 +6785,7 @@ class DocumentManager
}
}
// Checking inconsistency
if ($fileMoved ||
if ($fileMoved &&
$file_renamed_from_disk
) {
return true;

Loading…
Cancel
Save