summaryrefslogtreecommitdiffstats
path: root/settings/admin.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-29 11:54:05 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-01 13:24:02 +0200
commit43772e2a9a4b1400e7e3a8874130ac817aa64058 (patch)
treecb107cbaf36cd44c0f8da5367ec68b7e24913659 /settings/admin.php
parent270a10b7545ba8fdf8d8736ae6b967929875cfdd (diff)
downloadnextcloud-server-43772e2a9a4b1400e7e3a8874130ac817aa64058.tar.gz
nextcloud-server-43772e2a9a4b1400e7e3a8874130ac817aa64058.zip
Adding information on file locking status to admin section
Diffstat (limited to 'settings/admin.php')
-rw-r--r--settings/admin.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 5720bd9f99c..f2e01adab11 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -29,6 +29,8 @@
*
*/
+use OC\Lock\NoopLockingProvider;
+
OC_Util::checkAdminUser();
OC_App::setActiveNavigationEntry("admin");
@@ -175,6 +177,11 @@ $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);
+} else {
+ $template->assign('fileLockingEnabled', true);
+}
$formsMap = array_map(function ($form) {
if (preg_match('%(<h2[^>]*>.*?</h2>)%i', $form, $regs)) {
@@ -200,6 +207,7 @@ $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')];