| ';
$tooltiphelp = (($langs->trans($key.'Tooltip') != $key.'Tooltip') ? $langs->trans($key.'Tooltip') : '');
$label = $langs->trans($key);
if ($key == 'DAV_RESTICT_ON_IP') {
$label = $langs->trans("RESTRICT_ON_IP");
- $label .= ' '.$langs->trans("Example").': '.$langs->trans("IPListExample").'';
+ $tooltiphelp .= ' '.$langs->trans("Example").': '.$langs->trans("IPListExample").'';
}
print $form->textwithpicto($label, $tooltiphelp);
- print ' | ';
+ print ' | ';
if ($key == 'DAV_ALLOW_PRIVATE_DIR') {
print $langs->trans("AlwaysActive");
} elseif ($key == 'DAV_ALLOW_PUBLIC_DIR' || $key == 'DAV_ALLOW_ECM_DIR') {
diff --git a/htdocs/admin/system/security.php b/htdocs/admin/system/security.php
index c2e486fc940..5b3b8c9f280 100644
--- a/htdocs/admin/system/security.php
+++ b/htdocs/admin/system/security.php
@@ -375,7 +375,7 @@ if (! in_array($umask, array('600', '660', '0600', '0660'))) {
}
print $umask;
if (! in_array($umask, array('600', '660', '0600', '0660'))) {
- print ' ('.$langs->trans("Recommended").': 0600 | 0660'.')';
+ print ' ('.$langs->trans("Recommended").': 0600 | 0660)';
}
print ' ';
print ' ';
diff --git a/htdocs/dav/fileserver.php b/htdocs/dav/fileserver.php
index c77d4d02226..dd46992d211 100644
--- a/htdocs/dav/fileserver.php
+++ b/htdocs/dav/fileserver.php
@@ -66,7 +66,6 @@ if (empty($conf->dav->enabled)) {
accessforbidden();
}
-
// Restrict API to some IPs
if (!empty($conf->global->DAV_RESTRICT_ON_IP)) {
$allowedip = explode(' ', $conf->global->DAV_RESTRICT_ON_IP);
@@ -136,7 +135,7 @@ $authBackend = new \Sabre\DAV\Auth\Backend\BasicCallBack(function ($username, $p
return true;
});
-$authBackend->setRealm(constant('DOL_APPLICATION_TITLE'));
+$authBackend->setRealm(constant('DOL_APPLICATION_TITLE').' - WebDAV');
@@ -200,7 +199,7 @@ $lockBackend = new \Sabre\DAV\Locks\Backend\File($tmpDir.'/.locksdb');
$lockPlugin = new \Sabre\DAV\Locks\Plugin($lockBackend);
$server->addPlugin($lockPlugin);
-// Support for html frontend
+// Support for the html browser
if (empty($conf->global->DAV_DISABLE_BROWSER)) {
$browser = new \Sabre\DAV\Browser\Plugin();
$server->addPlugin($browser);
|