mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
new parameter overrideMimeType
This commit is contained in:
parent
28c39791dc
commit
b95f7ed91a
|
@ -127,6 +127,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
|
||||
|
@ -509,6 +511,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');
|
||||
|
@ -785,6 +788,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');
|
||||
|
|
|
@ -158,6 +158,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");
|
||||
|
|
|
@ -545,6 +545,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
|
||||
|
|
Loading…
Reference in New Issue
Block a user