diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php index 178d85ccf38846d997b3a240469b2baf99e16dbb..a7bb5b9de2dfc969fa7e05e57f77b2b4434f13c6 100644 --- a/apps/files_trashbin/ajax/undelete.php +++ b/apps/files_trashbin/ajax/undelete.php @@ -1,6 +1,6 @@ <?php -if(!OC_User::isLoggedIn()) { +if(!OCP\User::isLoggedIn()) { exit; } @@ -9,6 +9,7 @@ $dirlisting = $_REQUEST['dirlisting']; $list = explode(';', $files); $error = array(); +$success = array(); $i = 0; foreach ($list as $file) { diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js index 553e4cbc6f0138591d3c9d52d5713a0020475df6..31d16436b2c2bf1edacae56a80b1bbb0971a9a72 100644 --- a/apps/files_trashbin/js/trash.js +++ b/apps/files_trashbin/js/trash.js @@ -30,7 +30,7 @@ $(document).ready(function() { $('td.filename input:checkbox').attr('checked', false); $('td.filename input:checkbox').parent().parent().removeClass('selected'); } - procesSelection(); + processSelection(); }); $('td.filename input:checkbox').live('change',function(event) { @@ -59,7 +59,7 @@ $(document).ready(function() { $('#select_all').attr('checked',true); } } - procesSelection(); + processSelection(); }); $('.undelete').click('click',function(event) { @@ -81,7 +81,7 @@ $(document).ready(function() { }); -function procesSelection(){ +function processSelection(){ var selected=getSelectedFiles(); var selectedFiles=selected.filter(function(el){return el.type=='file'}); var selectedFolders=selected.filter(function(el){return el.type=='dir'});