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 ++++---- lib/task/isisInfoTask.class.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') 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; } -- cgit v1.2.3