From 44b002665c936bf4450ed76bb4b6e5ff4c531337 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Mon, 29 Jan 2018 13:17:07 +0100 Subject: 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 --- apps/files_trashbin/lib/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_trashbin') 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 ) { -- cgit v1.2.3