diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-17 17:47:11 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-04-17 17:47:11 +0200 |
commit | 0d5142be7080fba001d74609676e7e1ddd5b547f (patch) | |
tree | 662375f501297ed2abace99465f1c67a178459b4 /core/templates | |
parent | 42b7dfe9ac84da2e3e2bda732b0e94c68df9d515 (diff) | |
download | nextcloud-server-0d5142be7080fba001d74609676e7e1ddd5b547f.tar.gz nextcloud-server-0d5142be7080fba001d74609676e7e1ddd5b547f.zip |
Show a link to the docs instead of a button on the untrusted domain page
Before there was a button to "quickly" add the untrusted domain to the config. This button often didn't worked, because the generated URL was often untrusted as well. Thus removing it and providing proper docs seems to be the better approach to handle this rare case.
Also the log should not be spammed by messages for the untrusted domain accesses, because they are user related and not necessarily an administrative issue.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/untrustedDomain.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/templates/untrustedDomain.php b/core/templates/untrustedDomain.php index 297220c92bb..1443c412821 100644 --- a/core/templates/untrustedDomain.php +++ b/core/templates/untrustedDomain.php @@ -6,12 +6,8 @@ <p> <?php p($l->t('Please contact your administrator. If you are an administrator, edit the "trusted_domains" setting in config/config.php like the example in config.sample.php.')); ?> </p> + <br /> <p> - <?php p($l->t('Depending on your configuration, this button could also work to trust the domain:')); ?> - </p> - <p style="text-align:center;"> - <a href="<?php print_unescaped(\OC::$server->getURLGenerator()->getAbsoluteURL(\OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index'))); ?>?trustDomain=<?php p($_['domain']); ?>" class="button"> - <?php p($l->t('Add "%s" as trusted domain', array($_['domain']))); ?> - </a> + <?php print_unescaped($l->t('Further information how to configure this can be found in the %sdocumentation%s.', ['<a href="' . $_['docUrl'] . '" target="blank">', '</a>'])); ?> </p> </div> |