diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 048dc5b3c..3393e6f98 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -23,7 +23,7 @@ namespace OCA\Deck\AppInfo; -$version = \OC_Util::getVersion()[0]; +$version = \OCP\Util::getVersion()[0]; if ($version >= 20) { class Application extends Application20 { } diff --git a/lib/AppInfo/ApplicationLegacy.php b/lib/AppInfo/ApplicationLegacy.php index 22a3f6ac5..eec44dd4b 100644 --- a/lib/AppInfo/ApplicationLegacy.php +++ b/lib/AppInfo/ApplicationLegacy.php @@ -24,7 +24,6 @@ namespace OCA\Deck\AppInfo; use Exception; -use OC_Util; use OCA\Deck\Activity\CommentEventHandler; use OCA\Deck\Capabilities; use OCA\Deck\Collaboration\Resources\ResourceProvider; @@ -172,7 +171,7 @@ class ApplicationLegacy extends App { } protected function registerCollaborationResources(): void { - $version = OC_Util::getVersion()[0]; + $version = \OCP\Util::getVersion()[0]; if ($version < 16) { return; } diff --git a/lib/Service/BoardService.php b/lib/Service/BoardService.php index 477add264..516ca158a 100644 --- a/lib/Service/BoardService.php +++ b/lib/Service/BoardService.php @@ -532,7 +532,7 @@ class BoardService { $this->changeHelper->boardChanged($boardId); // TODO: use the dispatched event for this - $version = \OC_Util::getVersion()[0]; + $version = \OCP\Util::getVersion()[0]; if ($version >= 16) { try { $resourceProvider = \OC::$server->query(\OCA\Deck\Collaboration\Resources\ResourceProvider::class); @@ -621,7 +621,7 @@ class BoardService { $this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_BOARD, $acl, ActivityManager::SUBJECT_BOARD_UNSHARE); $this->changeHelper->boardChanged($acl->getBoardId()); - $version = \OC_Util::getVersion()[0]; + $version = \OCP\Util::getVersion()[0]; if ($version >= 16) { try { $resourceProvider = \OC::$server->query(\OCA\Deck\Collaboration\Resources\ResourceProvider::class);