summaryrefslogtreecommitdiff
path: root/modules/g2_import/helpers
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-05-18 19:49:25 -0600
committerChad Parry <github@chad.parry.org>2011-05-18 19:49:25 -0600
commitf0bfd1fef0b6d17da9a491f7c724ae53491926a2 (patch)
treee41cb18c39b462c2ad071240e97ad2bde10693e0 /modules/g2_import/helpers
parent72f3fc46f6c7c9043e730063051ecfd88bf314c8 (diff)
parentdb734130c5fe10408040b2326b28b102f3131271 (diff)
Merge branch 'master' of https://github.com/gallery/gallery3 into rawphoto
Conflicts: modules/gallery/helpers/system.php modules/gallery/tests/System_Helper_Test.php
Diffstat (limited to 'modules/g2_import/helpers')
-rw-r--r--modules/g2_import/helpers/g2_import.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index 3606c7ef..c79a8d36 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -560,7 +560,7 @@ class g2_import_Core {
$table = g2(GalleryCoreApi::fetchThumbnailsByItemIds(array($g2_album_id)));
if (isset($table[$g2_album_id])) {
// Backtrack the source id to an item
- $g2_source = $table[$g2_album_id];
+ $orig_g2_source = $g2_source = $table[$g2_album_id];
while (GalleryUtilities::isA($g2_source, "GalleryDerivative")) {
$g2_source = g2(GalleryCoreApi::loadEntitiesById($g2_source->getDerivativeSourceId()));
}
@@ -584,6 +584,11 @@ class g2_import_Core {
array("name" => $g3_album->name)),
$e);
}
+
+ self::set_map(
+ $orig_g2_source->getId(), $g3_album->id,
+ "thumbnail",
+ self::g2_url(array("view" => "core.DownloadItem", "itemId" => $orig_g2_source->getId())));
}
}
}