aboutsummaryrefslogtreecommitdiff
path: root/lib/sfIsisImporterManager.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sfIsisImporterManager.class.php')
-rw-r--r--lib/sfIsisImporterManager.class.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sfIsisImporterManager.class.php b/lib/sfIsisImporterManager.class.php
index ce65c7b..aa8ecb8 100644
--- a/lib/sfIsisImporterManager.class.php
+++ b/lib/sfIsisImporterManager.class.php
@@ -178,15 +178,15 @@ class sfIsisImporterManager extends IsisConnector
{
// Determine base model and max entries.
$this->log('Starting mass import procedure for database schema "'. $database .'".', 'notice');
- $base_model = $importer->isis->format['import']['base_model'];
- $this->max = ($entries != NULL && $entries + $offset <= $importer->isis->entries) ? $entries + $offset : $importer->isis->entries;
+ $base_model = $importer->isis->format['import']['base_model'];
+ $this->entries = ($entries != NULL && $entries + $offset <= $importer->isis->entries) ? $entries + $offset : $importer->isis->entries;
if ($base_model)
{
- for ($entry = $offset + 1; $entry <= $this->max; $entry++)
+ for ($entry = $offset + 1; $entry <= $this->entries; $entry++)
{
$importer->addEntry($base_model, $entry);
- $this->progress($entry);
+ $this->progress($entry, $this->entries);
}
}