diff --git a/admin/file-upload-js.php b/admin/file-upload-js.php index e48013be..84356446 100644 --- a/admin/file-upload-js.php +++ b/admin/file-upload-js.php @@ -120,11 +120,10 @@ $(document).ready(function() { $('#tab-files').bind('init', function () { var uploader = new plupload.Uploader({ browse_button : $('.upload-file').get(0), - url : 'index('/action/upload' + url : 'index('/action/upload' . (isset($fileParentContent) ? '?cid=' . $fileParentContent->cid : '')); ?>', - runtimes : 'html5,flash,silverlight,html4', + runtimes : 'html5,flash,html4', flash_swf_url : 'adminUrl('js/Moxie.swf'); ?>', - silverlight_xap_url : 'adminUrl('js/Moxie.xap'); ?>', drop_element : $('.upload-area').get(0), filters : { max_file_size : '', diff --git a/admin/js/Moxie.xap b/admin/js/Moxie.xap deleted file mode 100644 index 3a9f389f..00000000 Binary files a/admin/js/Moxie.xap and /dev/null differ diff --git a/admin/media.php b/admin/media.php index 64cae0f1..ce6be16d 100644 --- a/admin/media.php +++ b/admin/media.php @@ -144,10 +144,9 @@ $(document).ready(function() { var uploader = new plupload.Uploader({ browse_button : $('.upload-file').get(0), - url : 'index('/action/upload?do=modify&cid=' . $attachment->cid); ?>', - runtimes : 'html5,flash,silverlight,html4', + url : 'index('/action/upload?do=modify&cid=' . $attachment->cid); ?>', + runtimes : 'html5,flash,html4', flash_swf_url : 'adminUrl('js/Moxie.swf'); ?>', - silverlight_xap_url : 'adminUrl('js/Moxie.xap'); ?>', drop_element : $('.upload-area').get(0), filters : { max_file_size : '', diff --git a/usr/plugins/HelloWorld/Plugin.php b/usr/plugins/HelloWorld/Plugin.php index d71e1f8b..6425858a 100644 --- a/usr/plugins/HelloWorld/Plugin.php +++ b/usr/plugins/HelloWorld/Plugin.php @@ -1,4 +1,5 @@ need('header.php'); ?>