diff options
author | Silvio <silvio@devlet.com.br> | 2010-11-18 16:07:21 -0200 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-11-18 16:07:21 -0200 |
commit | 21eb6a370a258312903a1d0d5315861d0cc9200b (patch) | |
tree | 86d9b0ecc598dabd064df5d4409128826832264f | |
parent | 423b302430fa6eb707d4d492b6d943fa6174fc3b (diff) | |
download | sf_isis_importer_plugin-21eb6a370a258312903a1d0d5315861d0cc9200b.tar.gz sf_isis_importer_plugin-21eb6a370a258312903a1d0d5315861d0cc9200b.tar.bz2 |
Minor fixes
-rw-r--r-- | lib/sfIsisImporterManager.class.php | 8 | ||||
-rw-r--r-- | lib/task/isisInfoTask.class.php | 2 |
2 files changed, 5 insertions, 5 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); } } diff --git a/lib/task/isisInfoTask.class.php b/lib/task/isisInfoTask.class.php index 1124773..c9de868 100644 --- a/lib/task/isisInfoTask.class.php +++ b/lib/task/isisInfoTask.class.php @@ -19,7 +19,7 @@ class isisInfoTask extends mySfTask The [isis:info|INFO] task lists information of ISIS databases. Call it with: - [php symfony isis:import|INFO] + [php symfony isis:info|INFO] EOF; } |