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 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 modules/g2_import/helpers/g2_import_event.php (limited to 'modules/g2_import/helpers') 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)); + } +} -- cgit v1.2.3