diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-14 21:20:33 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-14 21:20:33 -0700 |
commit | 4ed60d6755944923ace336ffc3e61881ce14411f (patch) | |
tree | 24aa8d93fb21c32ffb6c0d8590bdd9f8a6829e7b | |
parent | 3c6e710aa75b309fd7ff50aa8f5c58721b17770f (diff) |
The fact that we have a path to a G2 embed file doesn't mean that it's still
valid so check to see that it's ok before proceeding. This should resolve #458.
-rw-r--r-- | modules/g2_import/controllers/admin_g2_import.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/g2_import/controllers/admin_g2_import.php b/modules/g2_import/controllers/admin_g2_import.php index b1018560..cc60f757 100644 --- a/modules/g2_import/controllers/admin_g2_import.php +++ b/modules/g2_import/controllers/admin_g2_import.php @@ -33,7 +33,7 @@ class Admin_g2_import_Controller extends Admin_Controller { $view->page_title = t("Gallery 2 import"); $view->content = new View("admin_g2_import.html"); $view->content->form = $this->_get_import_form(); - $view->content->version = ''; + $view->content->version = ""; if (g2_import::is_initialized()) { $view->content->g2_stats = $g2_stats; @@ -41,6 +41,8 @@ class Admin_g2_import_Controller extends Admin_Controller { $view->content->thumb_size = module::get_var("gallery", "thumb_size"); $view->content->resize_size = module::get_var("gallery", "resize_size"); $view->content->version = g2_import::version(); + } else if (g2_import::is_configured()) { + $view->content->form->configure_g2_import->embed_path->add_error("invalid", 1); } g2_import::restore_error_reporting(); print $view; |