diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-06 16:14:44 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-06 16:14:44 -0800 |
| commit | b0a73757d220ca7a60109c50937a5851e5e44227 (patch) | |
| tree | 0ac99d2608bf723d41c1a80f488af6f2f78a36c3 /modules/g2_import/helpers/g2_import.php | |
| parent | 0f9d23d074c81eafab05ce5d64909da624a86422 (diff) | |
| parent | 33b39efb491d730c8653ca3c06a22297338aa8b8 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/g2_import/helpers/g2_import.php')
| -rw-r--r-- | modules/g2_import/helpers/g2_import.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 0fcc0539..f13c63b1 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -541,6 +541,10 @@ class g2_import_Core { $item->save(); self::set_map($g2_item_id, $item->id, "item", $g2_item_url); + + self::set_map($g2_item_id, $item->id, "file", + self::g2_url(array("view" => "core.DownloadItem", "itemId" => $g2_item_id))); + $derivatives = g2(GalleryCoreApi::fetchDerivativesByItemIds(array($g2_item_id))); if (!empty($derivatives[$g2_item_id])) { foreach ($derivatives[$g2_item_id] as $derivative) { |
