summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-06 14:20:19 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-06 14:20:19 -0800
commitd8d1155615739a9e6f1f12d4f1ce2ec7cc9cd444 (patch)
tree4d4b8a31408dcc346cdece4d16106ef1161bcdf1 /modules
parent9bede5763a63bec7b1a7ea2ba9f4e8cea33087d5 (diff)
Fix maintenance view, which was broken when the g2_import module was installed but not configured correctly.
Diffstat (limited to 'modules')
-rw-r--r--modules/g2_import/helpers/g2_import_task.php5
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"))