From 21eb6a370a258312903a1d0d5315861d0cc9200b Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 18 Nov 2010 16:07:21 -0200 Subject: Minor fixes --- lib/sfIsisImporterManager.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/sfIsisImporterManager.class.php') 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); } } -- cgit v1.2.3