diff options
-rw-r--r-- | lib/sfIsisImporterManager.class.php (renamed from lib/sfIsisImporter.class.php) | 2 | ||||
-rw-r--r-- | lib/task/isisImportTask.class.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/sfIsisImporter.class.php b/lib/sfIsisImporterManager.class.php index 159fa8d..50f0574 100644 --- a/lib/sfIsisImporter.class.php +++ b/lib/sfIsisImporterManager.class.php @@ -6,7 +6,7 @@ * * Importing can be done either on actions or tasks. */ -class sfIsisImporter extends sfIsisImporterBase +class sfIsisImporterManager extends sfIsisImporterBase { /** * Execute a mass import of ISIS database entries. This function reads diff --git a/lib/task/isisImportTask.class.php b/lib/task/isisImportTask.class.php index b6d70af..76abd4f 100644 --- a/lib/task/isisImportTask.class.php +++ b/lib/task/isisImportTask.class.php @@ -30,7 +30,8 @@ EOF; $connection = $databaseManager->getDatabase($options['connection'])->getConnection(); // Initialize an IsisConnector. - $isis = new CineImporter($options['loglevel']); + $class = (class_exists('IsisImporterManager')) ? 'IsisImporterManager' : 'sfIsisImporterManager'; + $isis = new $class($options['loglevel']); // Error handling. if ($isis == FALSE) |