Skip to content

Commit

Permalink
fix: review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <luka@nextcloud.com>
  • Loading branch information
luka-nextcloud committed Nov 21, 2023
1 parent 5091624 commit 15c26ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/TemplateLayout.php
Expand Up @@ -209,7 +209,6 @@ public function __construct($renderAs, $appId = '') {
$showSimpleSignup = false;
}

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

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

Expand Down

0 comments on commit 15c26ec

Please sign in to comment.