issue 497 when import, cache directory delete

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9630 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-10-13 02:51:30 +00:00
parent 1582774003
commit 47303b243e
2 changed files with 6 additions and 5 deletions

View file

@ -116,10 +116,11 @@
}
function saveItems() {
$this->index = 0;
while(!$this->isFinished()) {
$this->getItem();
}
FileHandler::removeDir($this->cache_path.$this->key);
$this->index = 0;
while(!$this->isFinished()) {
$this->getItem();
}
}
function mergeItems($filename) {

View file

@ -246,7 +246,7 @@
// When completing, success message appears and remove the cache files
if($total <= $cur) {
$this->setMessage( sprintf(Context::getLang('msg_import_finished'), $cur, $total) );
FileHandler::removeFilesInDir('./files/cache/importer/'.$key);
FileHandler::removeDir('./files/cache/importer/'.$key);
} else $this->setMessage( sprintf(Context::getLang('msg_importing'), $total, $cur) );
}