From 44b002665c936bf4450ed76bb4b6e5ff4c531337 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julius=20H=C3=A4rtl?= <jus@bitgrid.net>
Date: Mon, 29 Jan 2018 13:17:07 +0100
Subject: [PATCH] Remove deprecated isEnabled call from files_trashbin
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Julius Härtl <jus@bitgrid.net>
---
 apps/files_trashbin/lib/Storage.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index 3025d36a210..64b6a086271 100644
--- a/apps/files_trashbin/lib/Storage.php
+++ b/apps/files_trashbin/lib/Storage.php
@@ -268,7 +268,7 @@ class Storage extends Wrapper {
 	 */
 	private function doDelete($path, $method, $ownerOnly = false) {
 		if (self::$disableTrash
-			|| !\OC_App::isEnabled('files_trashbin')
+			|| !\OC::$server->getAppManager()->isEnabledForUser('files_trashbin')
 			|| (pathinfo($path, PATHINFO_EXTENSION) === 'part')
 			|| $this->shouldMoveToTrash($path) === false
 		) {
-- 
GitLab