From a6e5f4b85c0aea807f95347e68f88faf08dfbee1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Wed, 30 Jan 2013 13:01:53 +0100
Subject: [PATCH] some minor improvements

---
 apps/files_trashbin/ajax/undelete.php | 3 ++-
 apps/files_trashbin/js/trash.js       | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php
index 178d85ccf3..a7bb5b9de2 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 553e4cbc6f..31d16436b2 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'});
-- 
GitLab