summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-07 10:39:07 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-07 10:39:07 +0100
commit8e13ee26fa04ec6c2aaaaa3fe0a8050b4a7c2b62 (patch)
treea809b7fb7b40055a6513fa7e6f7278224a9d4597
parentfd57820708ebb3a96c2010250221be33ba6a93bf (diff)
parent3d997e8c62bd752f38bcc11f02fb2af0e46d9154 (diff)
downloadnextcloud-server-8e13ee26fa04ec6c2aaaaa3fe0a8050b4a7c2b62.tar.gz
nextcloud-server-8e13ee26fa04ec6c2aaaaa3fe0a8050b4a7c2b62.zip
Merge pull request #13138 from owncloud/issue/13134-incorrect-admin-warning-overwrite-cli-url
Fix incorrect warning about setting the overwrite.cli.url
-rw-r--r--settings/admin.php8
-rw-r--r--settings/templates/admin.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 56484f25b26..e8b1fef7b7a 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -56,11 +56,11 @@ $template->assign('forceSSLforSubdomainsEnabled', $config->getSystemValue('force
// If the current web root is non-empty but the web root from the config is,
// and system cron is used, the URL generator fails to build valid URLs.
-$shouldSuggestOverwriteWebRoot = $config->getAppValue('core', 'backgroundjobs_mode', 'ajax') === 'cron' &&
+$shouldSuggestOverwriteCliUrl = $config->getAppValue('core', 'backgroundjobs_mode', 'ajax') === 'cron' &&
\OC::$WEBROOT && \OC::$WEBROOT !== '/' &&
- !$config->getSystemValue('overwritewebroot', '');
-$suggestedOverwriteWebRoot = ($shouldSuggestOverwriteWebRoot) ? \OC::$WEBROOT : '';
-$template->assign('suggestedOverwriteWebroot', $suggestedOverwriteWebRoot);
+ !$config->getSystemValue('overwrite.cli.url', '');
+$suggestedOverwriteCliUrl = ($shouldSuggestOverwriteCliUrl) ? \OC::$WEBROOT : '';
+$template->assign('suggestedOverwriteCliUrl', $suggestedOverwriteCliUrl);
$template->assign('allowLinks', $appConfig->getValue('core', 'shareapi_allow_links', 'yes'));
$template->assign('enforceLinkPassword', \OCP\Util::isPublicLinkPasswordRequired());
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index d04351c2d6c..f55626defb0 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -178,13 +178,13 @@ if (!$_['isLocaleWorking']) {
<?php
}
-if ($_['suggestedOverwriteWebroot']) {
+if ($_['suggestedOverwriteCliUrl']) {
?>
<div class="section">
<h2><?php p($l->t('URL generation in notification emails'));?></h2>
<span class="connectionwarning">
- <?php p($l->t('If your installation is not installed in the root of the domain and uses system cron, there can be issues with the URL generation. To avoid these problems, please set the "overwritewebroot" option in your config.php file to the webroot path of your installation (Suggested: "%s")', $_['suggestedOverwriteWebroot'])); ?>
+ <?php p($l->t('If your installation is not installed in the root of the domain and uses system cron, there can be issues with the URL generation. To avoid these problems, please set the "overwrite.cli.url" option in your config.php file to the webroot path of your installation (Suggested: "%s")', $_['suggestedOverwriteCliUrl'])); ?>
</span>
</div>