summaryrefslogtreecommitdiff
path: root/modules/g2_import
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-06 18:37:25 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-06 18:37:25 -0800
commita6170dc065856c6c4b6f69a4571fe19dee87d0ee (patch)
treef7aa1640ac9033ff58e5323454734a5c2f2d67c3 /modules/g2_import
parent163391ee391627f9c2b4eac359104809e2706a9b (diff)
Fix maintenance view for the case when g2_import is configured and the user replaced the original g2 directory with the .htaccess file only.
Diffstat (limited to 'modules/g2_import')
-rw-r--r--modules/g2_import/helpers/g2_import_task.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import_task.php b/modules/g2_import/helpers/g2_import_task.php
index 2e81adef..1ec6870e 100644
--- a/modules/g2_import/helpers/g2_import_task.php
+++ b/modules/g2_import/helpers/g2_import_task.php
@@ -23,7 +23,11 @@ class g2_import_task_Core {
g2_import::lower_error_reporting();
if (g2_import::is_configured()) {
g2_import::init();
- $version = g2_import::version();
+ // Guard from common case where the import has been
+ // completed and the original files have been removed.
+ if (class_exists("GalleryCoreApi")) {
+ $version = g2_import::version();
+ }
}
g2_import::restore_error_reporting();