diff options
author | Silvio <s1lv10@uol.com.br> | 2010-07-29 16:03:06 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2010-07-29 16:03:06 -0300 |
commit | 31815f9f5393c8db35bf9cb58182c3fd817ef9d0 (patch) | |
tree | d1336b545a5b12bf7d994cc4766f4a18404249ef /lib | |
parent | addef30dd8bcab2e4455a6c4b1578007ff112b11 (diff) | |
download | sf_isis_importer_plugin-31815f9f5393c8db35bf9cb58182c3fd817ef9d0.tar.gz sf_isis_importer_plugin-31815f9f5393c8db35bf9cb58182c3fd817ef9d0.tar.bz2 |
Renaming IsisImporter classes
Diffstat (limited to 'lib')
-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) |