mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
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:
parent
1582774003
commit
47303b243e
2 changed files with 6 additions and 5 deletions
|
|
@ -116,10 +116,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveItems() {
|
function saveItems() {
|
||||||
$this->index = 0;
|
FileHandler::removeDir($this->cache_path.$this->key);
|
||||||
while(!$this->isFinished()) {
|
$this->index = 0;
|
||||||
$this->getItem();
|
while(!$this->isFinished()) {
|
||||||
}
|
$this->getItem();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function mergeItems($filename) {
|
function mergeItems($filename) {
|
||||||
|
|
|
||||||
|
|
@ -246,7 +246,7 @@
|
||||||
// When completing, success message appears and remove the cache files
|
// When completing, success message appears and remove the cache files
|
||||||
if($total <= $cur) {
|
if($total <= $cur) {
|
||||||
$this->setMessage( sprintf(Context::getLang('msg_import_finished'), $cur, $total) );
|
$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) );
|
} else $this->setMessage( sprintf(Context::getLang('msg_importing'), $total, $cur) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue