diff options
author | Simon L <szaimen@e.mail.de> | 2023-06-10 09:47:04 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-06-12 11:36:29 +0000 |
commit | c5b43a43023f1fa392fd80b3637cecea35444d86 (patch) | |
tree | 1ed4326c138a9eb1de0d0b793c975038596d34e1 /core | |
parent | 0ef69969bcdb228a993faf364d359b20918d6f7a (diff) | |
download | nextcloud-server-c5b43a43023f1fa392fd80b3637cecea35444d86.tar.gz nextcloud-server-c5b43a43023f1fa392fd80b3637cecea35444d86.zip |
allow to specify upgrade.cli-upgrade-link in order to link to the correct documentation
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/update.php | 2 | ||||
-rw-r--r-- | core/templates/update.use-cli.php | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index dae08ad0882..9fa163eef71 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -100,7 +100,7 @@ class FeedBackHandler { if (\OCP\Util::needUpgrade()) { $config = \OC::$server->getSystemConfig(); if ($config->getValue('upgrade.disable-web', false)) { - $eventSource->send('failure', $l->t('Please use the command line updater because updating via the browser is disabled in your config.php.')); + $eventSource->send('failure', $l->t('Please use the command line updater because updating via browser is disabled in your config.php.')); $eventSource->close(); exit(); } diff --git a/core/templates/update.use-cli.php b/core/templates/update.use-cli.php index 403de7feadc..ae82436d2f1 100644 --- a/core/templates/update.use-cli.php +++ b/core/templates/update.use-cli.php @@ -5,10 +5,14 @@ <?php if ($_['tooBig']) { p($l->t('Please use the command line updater because you have a big instance with more than 50 users.')); } else { - p($l->t('Please use the command line updater because automatic updating is disabled in the config.php.')); + p($l->t('Please use the command line updater because updating via browser is disabled in your config.php.')); } ?><br><br> - <?php - print_unescaped($l->t('For help, see the <a target="_blank" rel="noreferrer noopener" href="%s">documentation</a>.', [link_to_docs('admin-cli-upgrade')])); ?> + <?php if (is_string($_['cliUpgradeLink']) && $_['cliUpgradeLink'] !== '') { + $cliUpgradeLink = $_['cliUpgradeLink']; + } else { + $cliUpgradeLink = link_to_docs('admin-cli-upgrade'); + } + print_unescaped($l->t('For help, see the <a target="_blank" rel="noreferrer noopener" href="%s">documentation</a>.', [$cliUpgradeLink])); ?> </div> </div> |