AC_4897, AC_4898, AC_4899: Multifile uploader fixes. v1.2
authorHarris Wong <hwong@ocad.ca>
Fri, 14 Oct 2011 16:15:11 +0000 (16:15 -0000)
committerHarris Wong <hwong@ocad.ca>
Fri, 14 Oct 2011 16:15:11 +0000 (16:15 -0000)
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.

docs/file_manager/filemanager_display.inc.php
docs/file_manager/upload.php

index 0fd396d..786a4e9 100644 (file)
@@ -204,7 +204,7 @@ if (TRUE || $framed != TRUE) {
                                        <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 -->
@@ -326,7 +326,7 @@ if (TRUE || $framed != TRUE) {
                         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: {
index 5643ac8..2b44f68 100644 (file)
@@ -96,7 +96,8 @@ if (isset($_POST['submit'])) {
                                        $_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);
                                }