diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-06 14:20:19 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-06 14:20:19 -0800 |
commit | d8d1155615739a9e6f1f12d4f1ce2ec7cc9cd444 (patch) | |
tree | 4d4b8a31408dcc346cdece4d16106ef1161bcdf1 /modules/g2_import/helpers/g2_import_task.php | |
parent | 9bede5763a63bec7b1a7ea2ba9f4e8cea33087d5 (diff) |
Fix maintenance view, which was broken when the g2_import module was installed but not configured correctly.
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")) |