Fixed: the "Skip Import" link was hidden after unit tests
This commit is contained in:
@ -65,7 +65,7 @@ if(!class_exists('ProgressBar', false)) {
|
||||
* @param int $count Count
|
||||
*/
|
||||
public function setTotalCount($count) {
|
||||
if($count != $this->total_count) {
|
||||
if(($count != $this->total_count) || ($count == 0)) {
|
||||
$this->total_count = $count;
|
||||
$this->current_count = 0;
|
||||
$this->saveProgress();
|
||||
@ -93,6 +93,14 @@ if(!class_exists('ProgressBar', false)) {
|
||||
)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the progress file
|
||||
*
|
||||
*/
|
||||
public function deleteProgressFile() {
|
||||
unlink($this->filename);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user