summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-21 17:24:40 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-02-21 17:24:40 -0600
commit02ea84f50f79ff6df8bada46d7c1fe0287cbd636 (patch)
treefc9dcdd79995b0ec35ca02ca3596fef6952f17f6 /apps
parent8e3d0fecd237a457fe66e00bc293923dae9a5adf (diff)
downloadnextcloud-server-02ea84f50f79ff6df8bada46d7c1fe0287cbd636.tar.gz
nextcloud-server-02ea84f50f79ff6df8bada46d7c1fe0287cbd636.zip
properly include class
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/Controller/ShareesAPIController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php
index 73f804faace..838dd1adf9b 100644
--- a/apps/files_sharing/lib/Controller/ShareesAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php
@@ -24,7 +24,7 @@
*/
namespace OCA\Files_Sharing\Controller;
-use OCP\AppFramework\Http;
+use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\OCS\OCSBadRequestException;
use OCP\AppFramework\OCSController;
use OCP\Contacts\IManager;
@@ -409,7 +409,7 @@ class ShareesAPIController extends OCSController {
* @param int $perPage
* @param int|int[] $shareType
* @param bool $lookup
- * @return Http\DataResponse
+ * @return DataResponse
* @throws OCSBadRequestException
*/
public function search($search = '', $itemType = null, $page = 1, $perPage = 200, $shareType = null, $lookup = true) {
@@ -417,7 +417,7 @@ class ShareesAPIController extends OCSController {
// only search for string larger than a given threshold
$threshold = intval($this->config->getSystemValue('sharing.minSearchStringLength', 0));
if (strlen($search) < $threshold) {
- return new Http\DataResponse($this->result);
+ return new DataResponse($this->result);
}
// never return more than the max. number of results configured in the config.php
@@ -493,7 +493,7 @@ class ShareesAPIController extends OCSController {
* @param int $page
* @param int $perPage
* @param bool $lookup
- * @return Http\DataResponse
+ * @return DataResponse
* @throws OCSBadRequestException
*/
protected function searchSharees($search, $itemType, array $shareTypes, $page, $perPage, $lookup) {
@@ -545,7 +545,7 @@ class ShareesAPIController extends OCSController {
$this->result['exact']['emails'] = $mailResults['exact'];
}
- $response = new Http\DataResponse($this->result);
+ $response = new DataResponse($this->result);
if (sizeof($this->reachedEndFor) < 3) {
$response->addHeader('Link', $this->getPaginationLink($page, [