Commit 4c2774040856d4e8a0520fab7072fe318b40d870

Authored by kevin_fourie
1 parent 952f656b

Merged in from DEV trunk...

Merged in some whitespace differences from DEV trunk.

Committed By: Kevin Fourie
Reviewed By: Conrad Vermeulen


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/branches/3.5.3-Branch@8530 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/foldermanagement/compressionArchiveUtil.inc.php
@@ -89,7 +89,6 @@ class ZipFolder { @@ -89,7 +89,6 @@ class ZipFolder {
89 $this->sZipFileName = $sZipFileName; 89 $this->sZipFileName = $sZipFileName;
90 $this->aPaths = array(); 90 $this->aPaths = array();
91 91
92 -  
93 $aReplace = array( 92 $aReplace = array(
94 "[" => "[[]", 93 "[" => "[[]",
95 " " => "[ ]", 94 " " => "[ ]",
lib/upgrades/upgrade.inc.php
@@ -9,31 +9,31 @@ @@ -9,31 +9,31 @@
9 * Document Management Made Simple 9 * Document Management Made Simple
10 * Copyright (C) 2008 KnowledgeTree Inc. 10 * Copyright (C) 2008 KnowledgeTree Inc.
11 * Portions copyright The Jam Warehouse Software (Pty) Limited 11 * Portions copyright The Jam Warehouse Software (Pty) Limited
12 - * 12 + *
13 * This program is free software; you can redistribute it and/or modify it under 13 * This program is free software; you can redistribute it and/or modify it under
14 * the terms of the GNU General Public License version 3 as published by the 14 * the terms of the GNU General Public License version 3 as published by the
15 * Free Software Foundation. 15 * Free Software Foundation.
16 - * 16 + *
17 * This program is distributed in the hope that it will be useful, but WITHOUT 17 * This program is distributed in the hope that it will be useful, but WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 19 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
20 * details. 20 * details.
21 - * 21 + *
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>. 23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 - *  
25 - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, 24 + *
  25 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
26 * California 94120-7775, or email info@knowledgetree.com. 26 * California 94120-7775, or email info@knowledgetree.com.
27 - * 27 + *
28 * The interactive user interfaces in modified source and object code versions 28 * The interactive user interfaces in modified source and object code versions
29 * of this program must display Appropriate Legal Notices, as required under 29 * of this program must display Appropriate Legal Notices, as required under
30 * Section 5 of the GNU General Public License version 3. 30 * Section 5 of the GNU General Public License version 3.
31 - * 31 + *
32 * In accordance with Section 7(b) of the GNU General Public License version 3, 32 * In accordance with Section 7(b) of the GNU General Public License version 3,
33 * these Appropriate Legal Notices must retain the display of the "Powered by 33 * these Appropriate Legal Notices must retain the display of the "Powered by
34 - * KnowledgeTree" logo and retain the original copyright notice. If the display of the 34 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
35 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices 35 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
36 - * must display the words "Powered by KnowledgeTree" and retain the original 36 + * must display the words "Powered by KnowledgeTree" and retain the original
37 * copyright notice. 37 * copyright notice.
38 * Contributor( s): ______________________________________ 38 * Contributor( s): ______________________________________
39 */ 39 */
@@ -62,7 +62,7 @@ function setupAdminDatabase() { @@ -62,7 +62,7 @@ function setupAdminDatabase() {
62 die($default->_admindb->toString()); 62 die($default->_admindb->toString());
63 } 63 }
64 $default->_admindb->setFetchMode(DB_FETCHMODE_ASSOC); 64 $default->_admindb->setFetchMode(DB_FETCHMODE_ASSOC);
65 - return; 65 + return;
66 } 66 }
67 setupAdminDatabase(); 67 setupAdminDatabase();
68 68
@@ -100,7 +100,7 @@ function &amp;describeUpgrade ($origVersion, $currVersion) { @@ -100,7 +100,7 @@ function &amp;describeUpgrade ($origVersion, $currVersion) {
100 // 7. Add "recordUpgrade" for whole thing 100 // 7. Add "recordUpgrade" for whole thing
101 101
102 // $recordUpgrade = array('upgrade*' . $currVersion, 'Upgrade to ' . $currVersion, null); 102 // $recordUpgrade = array('upgrade*' . $currVersion, 'Upgrade to ' . $currVersion, null);
103 - 103 +
104 $steps = array(); 104 $steps = array();
105 foreach (array('SQLUpgradeItem', 'FunctionUpgradeItem') as $itemgen) { 105 foreach (array('SQLUpgradeItem', 'FunctionUpgradeItem') as $itemgen) {
106 $f = array($itemgen, 'getUpgrades'); 106 $f = array($itemgen, 'getUpgrades');
@@ -186,7 +186,7 @@ function compare_version($version1, $version2) { @@ -186,7 +186,7 @@ function compare_version($version1, $version2) {
186 function lte_version($version1, $version2) { 186 function lte_version($version1, $version2) {
187 if (in_array(compare_version($version1, $version2), array(-1, 0))) { 187 if (in_array(compare_version($version1, $version2), array(-1, 0))) {
188 return true; 188 return true;
189 - } 189 + }
190 return false; 190 return false;
191 } 191 }
192 // }} 192 // }}
@@ -198,7 +198,7 @@ function lte_version($version1, $version2) { @@ -198,7 +198,7 @@ function lte_version($version1, $version2) {
198 function gte_version($version1, $version2) { 198 function gte_version($version1, $version2) {
199 if (in_array(compare_version($version1, $version2), array(0, 1))) { 199 if (in_array(compare_version($version1, $version2), array(0, 1))) {
200 return true; 200 return true;
201 - } 201 + }
202 return false; 202 return false;
203 } 203 }
204 // }}} 204 // }}}
plugins/ktcore/folder/BulkImport.php
@@ -6,31 +6,31 @@ @@ -6,31 +6,31 @@
6 * Document Management Made Simple 6 * Document Management Made Simple
7 * Copyright (C) 2008 KnowledgeTree Inc. 7 * Copyright (C) 2008 KnowledgeTree Inc.
8 * Portions copyright The Jam Warehouse Software (Pty) Limited 8 * Portions copyright The Jam Warehouse Software (Pty) Limited
9 - * 9 + *
10 * This program is free software; you can redistribute it and/or modify it under 10 * This program is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU General Public License version 3 as published by the 11 * the terms of the GNU General Public License version 3 as published by the
12 * Free Software Foundation. 12 * Free Software Foundation.
13 - * 13 + *
14 * This program is distributed in the hope that it will be useful, but WITHOUT 14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * details. 17 * details.
18 - * 18 + *
19 * You should have received a copy of the GNU General Public License 19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 - *  
22 - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, 21 + *
  22 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
23 * California 94120-7775, or email info@knowledgetree.com. 23 * California 94120-7775, or email info@knowledgetree.com.
24 - * 24 + *
25 * The interactive user interfaces in modified source and object code versions 25 * The interactive user interfaces in modified source and object code versions
26 * of this program must display Appropriate Legal Notices, as required under 26 * of this program must display Appropriate Legal Notices, as required under
27 * Section 5 of the GNU General Public License version 3. 27 * Section 5 of the GNU General Public License version 3.
28 - * 28 + *
29 * In accordance with Section 7(b) of the GNU General Public License version 3, 29 * In accordance with Section 7(b) of the GNU General Public License version 3,
30 * these Appropriate Legal Notices must retain the display of the "Powered by 30 * these Appropriate Legal Notices must retain the display of the "Powered by
31 - * KnowledgeTree" logo and retain the original copyright notice. If the display of the 31 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
32 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices 32 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
33 - * must display the words "Powered by KnowledgeTree" and retain the original 33 + * must display the words "Powered by KnowledgeTree" and retain the original
34 * copyright notice. 34 * copyright notice.
35 * Contributor( s): ______________________________________ 35 * Contributor( s): ______________________________________
36 * 36 *
@@ -52,7 +52,7 @@ class KTBulkImportFolderAction extends KTFolderAction { @@ -52,7 +52,7 @@ class KTBulkImportFolderAction extends KTFolderAction {
52 var $sName = 'ktcore.actions.folder.bulkImport'; 52 var $sName = 'ktcore.actions.folder.bulkImport';
53 53
54 var $_sShowPermission = "ktcore.permissions.write"; 54 var $_sShowPermission = "ktcore.permissions.write";
55 - var $bAutomaticTransaction = true; 55 + var $bAutomaticTransaction = false;
56 56
57 function getDisplayName() { 57 function getDisplayName() {
58 return _kt('Import from Server Location'); 58 return _kt('Import from Server Location');
plugins/ktcore/folder/BulkUpload.php
@@ -6,31 +6,31 @@ @@ -6,31 +6,31 @@
6 * Document Management Made Simple 6 * Document Management Made Simple
7 * Copyright (C) 2008 KnowledgeTree Inc. 7 * Copyright (C) 2008 KnowledgeTree Inc.
8 * Portions copyright The Jam Warehouse Software (Pty) Limited 8 * Portions copyright The Jam Warehouse Software (Pty) Limited
9 - * 9 + *
10 * This program is free software; you can redistribute it and/or modify it under 10 * This program is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU General Public License version 3 as published by the 11 * the terms of the GNU General Public License version 3 as published by the
12 * Free Software Foundation. 12 * Free Software Foundation.
13 - * 13 + *
14 * This program is distributed in the hope that it will be useful, but WITHOUT 14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * details. 17 * details.
18 - * 18 + *
19 * You should have received a copy of the GNU General Public License 19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 - *  
22 - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, 21 + *
  22 + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
23 * California 94120-7775, or email info@knowledgetree.com. 23 * California 94120-7775, or email info@knowledgetree.com.
24 - * 24 + *
25 * The interactive user interfaces in modified source and object code versions 25 * The interactive user interfaces in modified source and object code versions
26 * of this program must display Appropriate Legal Notices, as required under 26 * of this program must display Appropriate Legal Notices, as required under
27 * Section 5 of the GNU General Public License version 3. 27 * Section 5 of the GNU General Public License version 3.
28 - * 28 + *
29 * In accordance with Section 7(b) of the GNU General Public License version 3, 29 * In accordance with Section 7(b) of the GNU General Public License version 3,
30 * these Appropriate Legal Notices must retain the display of the "Powered by 30 * these Appropriate Legal Notices must retain the display of the "Powered by
31 - * KnowledgeTree" logo and retain the original copyright notice. If the display of the 31 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
32 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices 32 * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
33 - * must display the words "Powered by KnowledgeTree" and retain the original 33 + * must display the words "Powered by KnowledgeTree" and retain the original
34 * copyright notice. 34 * copyright notice.
35 * Contributor( s): ______________________________________ 35 * Contributor( s): ______________________________________
36 * 36 *
@@ -50,7 +50,7 @@ class KTBulkUploadFolderAction extends KTFolderAction { @@ -50,7 +50,7 @@ class KTBulkUploadFolderAction extends KTFolderAction {
50 var $sName = 'ktcore.actions.folder.bulkUpload'; 50 var $sName = 'ktcore.actions.folder.bulkUpload';
51 51
52 var $_sShowPermission = "ktcore.permissions.write"; 52 var $_sShowPermission = "ktcore.permissions.write";
53 - var $bAutomaticTransaction = true; 53 + var $bAutomaticTransaction = false;
54 54
55 function getDisplayName() { 55 function getDisplayName() {
56 return _kt('Bulk Upload'); 56 return _kt('Bulk Upload');