Removed an extra letter "u" on the page. Now properly forwards user back to the popup upload page upon successful file upload. Also fixed a vsprinf issue with the Messenger.
<th class="fl-uploader-file-name">File Name</th>
<th class="fl-uploader-file-size">Size</th>
<th class="fl-uploader-file-actions"></th>
- </tr>u
+ </tr>
</table>
<!-- File Queue body, which is the default container for the FileQueueView component -->
jQuery('#uploader-error-container').html("");
},
afterUploadComplete: function () {
- window.location = "<?php echo TR_BASE_HREF; ?>file_manager/index.php?pathext=<?php echo $pathext . SEP . '_course_id=' . $_course_id; ?>";
+ window.location = "<?php echo TR_BASE_HREF . 'file_manager/index.php?popup='.$popup.SEP. 'framed='.$framed.SEP.'cp='.$_GET['cp'].SEP.'pid='.$_GET['pid'].SEP.'cid='.$cid.SEP.'a_type='.$a_type.SEP.'_course_id='.$_course_id; ?>"
}
},
components: {
$_FILES['uploadedfile']['name'] = substr(time(), -4).'.'.$_FILES['uploadedfile']['name'];
$f = array('FILE_EXISTS',
- substr($_FILES['uploadedfile']['name'], 5));
+ substr($_FILES['uploadedfile']['name'], 5),
+ $_FILES['uploadedfile']['name']);
$msg->addFeedback($f);
}