summaryrefslogtreecommitdiff
path: root/modules/g2_import/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-05-07 10:44:34 -0700
committerBharat Mediratta <bharat@menalto.com>2013-05-07 10:44:34 -0700
commitf59f1c03b8e69241095d8c708d6a42edf6ed2a55 (patch)
tree0ff420d9fe69f0ab0dc608be18a7bc4a50da759e /modules/g2_import/helpers
parent48f9595f7806796f955fa1c2c6a3f6f17b1ed9ad (diff)
parent0c2d2b25fa7eb738d0a7491a793b2539a2dc4721 (diff)
Merge pull request #352 from rlerdorf/master
Fix a couple of small mistakes Fixes #2066 and #2067
Diffstat (limited to 'modules/g2_import/helpers')
-rw-r--r--modules/g2_import/helpers/g2_import.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index b155a88a..82850e85 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -498,7 +498,7 @@ class g2_import_Core {
$album->description = self::_decode_html_special_chars(self::extract_description($g2_album));
$album->owner_id = self::map($g2_album->getOwnerId());
try {
- $album->view_count = (int) g2(GalleryCoreApi::fetchItemViewCount($g2_album_id));
+ $album->view_count = (int) g2(GalleryCoreApi::fetchItemViewCount($g2_album->getId()));
} catch (Exception $e) {
// @todo log
$album->view_count = 0;