aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorAndrew Summers <18727110+summersab@users.noreply.github.com>2023-08-29 17:32:04 -0500
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-03-15 13:05:49 +0100
commitb45c3a096eb31449eb862cca41420709a4336c61 (patch)
treeb122e2037e1493bb336b53c38fb273db4583acb8 /lib/private/TemplateLayout.php
parentdf1cd1ba7e6e1f6e66a2b3229b5c082f1b81162e (diff)
downloadnextcloud-server-b45c3a096eb31449eb862cca41420709a4336c61.tar.gz
nextcloud-server-b45c3a096eb31449eb862cca41420709a4336c61.zip
Refactor `OC\Server::getCapabilitiesManager`
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index b4490dfe101..c5e58063a83 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -43,6 +43,7 @@
namespace OC;
use bantu\IniGetWrapper\IniGetWrapper;
+use OC\CapabilitiesManager;
use OC\Search\SearchQuery;
use OC\Template\CSSResourceLocator;
use OC\Template\JSConfigHelper;
@@ -258,7 +259,7 @@ class TemplateLayout extends \OC_Template {
\OC::$server->getGroupManager(),
\OC::$server->get(IniGetWrapper::class),
\OC::$server->getURLGenerator(),
- \OC::$server->getCapabilitiesManager(),
+ \OC::$server->get(CapabilitiesManager::class),
\OCP\Server::get(IInitialStateService::class)
);
$config = $jsConfigHelper->getConfig();