From 98d085e55f02dd19fde4fd3acda9037a9fe57bf4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 22 Apr 2009 19:49:27 +0000 Subject: Minor cleanups: * Delete g2_map records when the corresponding item is removed. * Improve text on g2 import settings page * Minor comment fixes. --- modules/g2_import/helpers/g2_import.php | 2 +- modules/g2_import/helpers/g2_import_event.php | 24 ++++++++++++++++++++++++ modules/g2_import/views/admin_g2_import.html.php | 4 ++-- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 modules/g2_import/helpers/g2_import_event.php (limited to 'modules') diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index d0b11e25..c52ead36 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -196,7 +196,7 @@ class g2_import_Core { $album->view_count = g2(GalleryCoreApi::fetchItemViewCount($g2_album_id)); $album->created = $g2_album->getCreationTimestamp(); - // @todo supported "keywords", "originationTimestamp", and "random" sort orders. + // @todo support "keywords", "originationTimestamp", and "random" sort orders. $order_map = array( "creationTimestamp" => "created", "description" => "description", diff --git a/modules/g2_import/helpers/g2_import_event.php b/modules/g2_import/helpers/g2_import_event.php new file mode 100644 index 00000000..1352dc1f --- /dev/null +++ b/modules/g2_import/helpers/g2_import_event.php @@ -0,0 +1,24 @@ +delete("g2_maps", array("g3_id", $item->id)); + } +} diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php index 8b116ccd..e9d2d8ba 100644 --- a/modules/g2_import/views/admin_g2_import.html.php +++ b/modules/g2_import/views/admin_g2_import.html.php @@ -3,8 +3,8 @@

-

- + Note: The importer is a work in progress and does not currently support comments, tags, permissions, capture dates and movies (other than Flash video)") ?> +

-- cgit v1.2.3