Skip to content

Commit 15c26ec

Browse files
fix: review comment
Signed-off-by: Luka Trovic <luka@nextcloud.com>
1 parent 5091624 commit 15c26ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/TemplateLayout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ public function __construct($renderAs, $appId = '') {
209209
$showSimpleSignup = false;
210210
}
211211

212-
$urlGenerator = \OCP\Server::get(IURLGenerator::class);
213212
$defaultSignUpLink = 'https://nextcloud.com/signup/';
214213
$signUpLink = $this->config->getSystemValueString('registration_link', $defaultSignUpLink);
215214
if ($signUpLink !== $defaultSignUpLink) {
@@ -218,6 +217,7 @@ public function __construct($renderAs, $appId = '') {
218217

219218
$appManager = \OCP\Server::get(IAppManager::class);
220219
if ($appManager->isEnabledForUser('registration')) {
220+
$urlGenerator = \OCP\Server::get(IURLGenerator::class);
221221
$signUpLink = $urlGenerator->getAbsoluteURL('/index.php/apps/registration/');
222222
}
223223

0 commit comments

Comments
 (0)