new parameter overrideMimeType

This commit is contained in:
Uwe Steinmann 2015-06-23 07:44:47 +02:00
parent ec0816e825
commit f960bc81b4
3 changed files with 9 additions and 0 deletions

View File

@ -121,6 +121,8 @@ class Settings { /* {{{ */
var $_enableVersionModification = false;
// enable/disable duplicate names of a document in a folder
var $_enableDuplicateDocNames = true;
// override mimetype set by browser when uploading a file
var $_overrideMimeType = false;
// enable/disable notification when added as a reviewer/approver
var $_enableNotificationAppRev = true;
// enable/disable notification of users/group who need to take action for
@ -491,6 +493,7 @@ class Settings { /* {{{ */
$this->_enableVersionDeletion = Settings::boolval($tab["enableVersionDeletion"]);
$this->_enableVersionModification = Settings::boolval($tab["enableVersionModification"]);
$this->_enableDuplicateDocNames = Settings::boolval($tab["enableDuplicateDocNames"]);
$this->_overrideMimeType = Settings::boolval($tab["overrideMimeType"]);
// XML Path: /configuration/advanced/notification
$node = $xml->xpath('/configuration/advanced/notification');
@ -762,6 +765,7 @@ class Settings { /* {{{ */
$this->setXMLAttributValue($node, "enableVersionDeletion", $this->_enableVersionDeletion);
$this->setXMLAttributValue($node, "enableVersionModification", $this->_enableVersionModification);
$this->setXMLAttributValue($node, "enableDuplicateDocNames", $this->_enableDuplicateDocNames);
$this->setXMLAttributValue($node, "overrideMimeType", $this->_overrideMimeType);
// XML Path: /configuration/advanced/notification
$node = $this->getXMLNode($xml, '/configuration/advanced', 'notification');

View File

@ -152,6 +152,7 @@ if ($action == "saveSettings")
$settings->_enableVersionDeletion = getBoolValue("enableVersionDeletion");
$settings->_enableVersionModification = getBoolValue("enableVersionModification");
$settings->_enableDuplicateDocNames = getBoolValue("enableDuplicateDocNames");
$settings->_overrideMimeType = getBoolValue("overrideMimeType");
// SETTINGS - ADVANCED - NOTIFICATION
$settings->_enableOwnerNotification = getBoolValue("enableOwnerNotification");

View File

@ -516,6 +516,10 @@ if(!is_writeable($settings->_configFilePath)) {
<td><?php printMLText("settings_enableDuplicateDocNames");?>:</td>
<td><input name="enableDuplicateDocNames" type="checkbox" <?php if ($settings->_enableDuplicateDocNames) echo "checked" ?> /></td>
</tr>
<tr title="<?php printMLText("settings_overrideMimeType_desc");?>">
<td><?php printMLText("settings_overrideMimeType");?>:</td>
<td><input name="overrideMimeType" type="checkbox" <?php if ($settings->_overrideMimeType) echo "checked" ?> /></td>
</tr>
<!--
-- SETTINGS - ADVANCED - NOTIFICATION