diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-06 16:14:44 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-06 16:14:44 -0800 |
commit | b0a73757d220ca7a60109c50937a5851e5e44227 (patch) | |
tree | 0ac99d2608bf723d41c1a80f488af6f2f78a36c3 /modules/g2_import/helpers/g2_import_task.php | |
parent | 0f9d23d074c81eafab05ce5d64909da624a86422 (diff) | |
parent | 33b39efb491d730c8653ca3c06a22297338aa8b8 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/g2_import/helpers/g2_import_task.php')
-rw-r--r-- | modules/g2_import/helpers/g2_import_task.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/g2_import/helpers/g2_import_task.php b/modules/g2_import/helpers/g2_import_task.php index e0212b33..2e81adef 100644 --- a/modules/g2_import/helpers/g2_import_task.php +++ b/modules/g2_import/helpers/g2_import_task.php @@ -19,14 +19,15 @@ */ class g2_import_task_Core { static function available_tasks() { + $version = ''; g2_import::lower_error_reporting(); if (g2_import::is_configured()) { g2_import::init(); + $version = g2_import::version(); } - $version = g2_import::version(); g2_import::restore_error_reporting(); - if (class_exists("GalleryCoreApi")) { + if (g2_import::is_initialized()) { return array(Task_Definition::factory() ->callback("g2_import_task::import") ->name(t("Import from Gallery 2")) |