aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-06-06 11:09:24 +0200
committerChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-07-06 15:21:22 +0200
commit14719110b9c795a95b23c2278168b9d6123b1a62 (patch)
tree9919ba8c849e3397e23e46ad9f1fdc3f951d3a7f /lib/private/TemplateLayout.php
parent5538a40029da60547798ae6f9e11179c4ee4a642 (diff)
downloadnextcloud-server-14719110b9c795a95b23c2278168b9d6123b1a62.tar.gz
nextcloud-server-14719110b9c795a95b23c2278168b9d6123b1a62.zip
chore: Replace \OC::$server->query with \OCP\Server::get in /lib
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 5c6488cbc0f..658a85152bf 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -190,7 +190,7 @@ class TemplateLayout extends \OC_Template {
$this->assign('bodyid', 'body-public');
/** @var IRegistry $subscription */
- $subscription = \OC::$server->query(IRegistry::class);
+ $subscription = \OCP\Server::get(IRegistry::class);
$showSimpleSignup = $this->config->getSystemValueBool('simpleSignUpLink.shown', true);
if ($showSimpleSignup && $subscription->delegateHasValidSubscription()) {
$showSimpleSignup = false;
@@ -226,7 +226,7 @@ class TemplateLayout extends \OC_Template {
// see https://github.com/nextcloud/server/pull/22636 for details
$jsConfigHelper = new JSConfigHelper(
\OC::$server->getL10N('lib'),
- \OC::$server->query(Defaults::class),
+ \OCP\Server::get(Defaults::class),
\OC::$server->getAppManager(),
\OC::$server->getSession(),
\OC::$server->getUserSession()->getUser(),
@@ -235,7 +235,7 @@ class TemplateLayout extends \OC_Template {
\OC::$server->get(IniGetWrapper::class),
\OC::$server->getURLGenerator(),
\OC::$server->getCapabilitiesManager(),
- \OC::$server->query(IInitialStateService::class)
+ \OCP\Server::get(IInitialStateService::class)
);
$config = $jsConfigHelper->getConfig();
if (\OC::$server->getContentSecurityPolicyNonceManager()->browserSupportsCspV3()) {