summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-02-05 17:05:56 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-02-11 10:50:03 +0100
commitaf781bdea7509c3ecd9a7b4902fb7a266dc62c80 (patch)
treea96d0d290974278e4d97aa56919d45997f9d86a9 /core/ajax
parent32afdcbefec5793fb28162c456919d2b0be5cfe9 (diff)
downloadnextcloud-server-af781bdea7509c3ecd9a7b4902fb7a266dc62c80.tar.gz
nextcloud-server-af781bdea7509c3ecd9a7b4902fb7a266dc62c80.zip
fix DI
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 21e320a4732..c251f8e7bae 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -355,7 +355,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
}
}
$sorter = new \OC\Share\SearchResultSorter($_GET['search'],
- 'label');
+ 'label',
+ new \OC\Log());
usort($shareWith, array($sorter, 'sort'));
OC_JSON::success(array('data' => $shareWith));
}