diff --git a/settings/admin.php b/settings/admin.php index 56484f25b2..e8b1fef7b7 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 d04351c2d6..f55626defb 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -178,13 +178,13 @@ if (!$_['isLocaleWorking']) {