diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-04-22 19:49:27 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-04-22 19:49:27 +0000 |
commit | 98d085e55f02dd19fde4fd3acda9037a9fe57bf4 (patch) | |
tree | e2fee3b1e27b5c4aa22e30a4dbea32ada90712bc /modules/g2_import | |
parent | 8141fd50889431059ec2def58418283ddb8f355b (diff) |
Minor cleanups:
* Delete g2_map records when the corresponding item is removed.
* Improve text on g2 import settings page
* Minor comment fixes.
Diffstat (limited to 'modules/g2_import')
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 2 | ||||
-rw-r--r-- | modules/g2_import/helpers/g2_import_event.php | 24 | ||||
-rw-r--r-- | modules/g2_import/views/admin_g2_import.html.php | 4 |
3 files changed, 27 insertions, 3 deletions
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 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class g2_import_event_Core { + static function item_before_delete($item) { + Database::instance()->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 @@ <h1> <?= t("Gallery 2 Import") ?> </h1> <p> <?= t("Import your Gallery 2 users, photos, movies, comments and tags into your new Gallery 3 installation.") ?> - </p> - + <?= t("<b>Note: The importer is a work in progress and does not currently support comments, tags, permissions, capture dates and movies (other than Flash video)</b>") ?> + </p> <?= $form ?> </div> |