Commit 4d9662c5548d99799be669be3672026c958d365a

Authored by Neil Blakey-Milner
1 parent 7c8822cc

Initialise the storage, and clean it up after we are done.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3631 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 1 deletions
lib/import/bulkimport.inc.php
... ... @@ -43,11 +43,13 @@ class KTBulkImportManager {
43 43 }
44 44  
45 45 function import() {
  46 + $this->oStorage->init();
46 47 $res = $this->_importfolder($this->oFolder, "/");
47 48 if (PEAR::isError($res)) {
48   - DBUtil::rollback();
  49 + $this->oStorage->cleanup();
49 50 return $res;
50 51 }
  52 + $this->oStorage->cleanup();
51 53 return;
52 54 }
53 55  
... ...