summaryrefslogtreecommitdiffstats
path: root/settings/admin.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-02 17:11:46 +0200
committerRobin Appelman <icewind@owncloud.com>2015-09-03 11:59:47 +0200
commit4361ff92e2c5c2ccab16ac8b1ee63ddc9e0f1d37 (patch)
tree36276bee01bfafb3ef21b1d41326c73c363db80d /settings/admin.php
parent8684420d0a503f5c913343eca838b3a7dc903506 (diff)
downloadnextcloud-server-4361ff92e2c5c2ccab16ac8b1ee63ddc9e0f1d37.tar.gz
nextcloud-server-4361ff92e2c5c2ccab16ac8b1ee63ddc9e0f1d37.zip
Replace server status message about transitional file locking with setup warnings
Diffstat (limited to 'settings/admin.php')
-rw-r--r--settings/admin.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 8410a6671ef..38683438f3a 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -193,10 +193,13 @@ $template->assign('fileSharingSettings', $fileSharingSettings);
$template->assign('filesExternal', $filesExternal);
$template->assign('updaterAppPanel', $updaterAppPanel);
$template->assign('ocDefaultEncryptionModulePanel', $ocDefaultEncryptionModulePanel);
-if (\OC::$server->getLockingProvider() instanceof NoopLockingProvider) {
- $template->assign('fileLockingEnabled', false);
+$lockingProvider = \OC::$server->getLockingProvider();
+if ($lockingProvider instanceof NoopLockingProvider) {
+ $template->assign('fileLockingType', 'none');
+} else if ($lockingProvider instanceof \OC\Lock\DBLockingProvider) {
+ $template->assign('fileLockingType', 'db');
} else {
- $template->assign('fileLockingEnabled', true);
+ $template->assign('fileLockingType', 'cache');
}
$formsMap = array_map(function ($form) {
@@ -223,7 +226,6 @@ $formsAndMore = array_merge($formsAndMore, $formsMap);
$formsAndMore[] = ['anchor' => 'backgroundjobs', 'section-name' => $l->t('Cron')];
$formsAndMore[] = ['anchor' => 'mail_general_settings', 'section-name' => $l->t('Email server')];
$formsAndMore[] = ['anchor' => 'log-section', 'section-name' => $l->t('Log')];
-$formsAndMore[] = ['anchor' => 'server-status', 'section-name' => $l->t('Server status')];
$formsAndMore[] = ['anchor' => 'admin-tips', 'section-name' => $l->t('Tips & tricks')];
if ($updaterAppPanel) {
$formsAndMore[] = ['anchor' => 'updater', 'section-name' => $l->t('Updates')];