aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/edit.php2
-rw-r--r--actions/edit_multi.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/edit.php b/actions/edit.php
index db6e26ab9..cca66941a 100644
--- a/actions/edit.php
+++ b/actions/edit.php
@@ -65,7 +65,7 @@ if (is_array($tagarray)) {
//if cover meta is sent from image save as metadata
if ($subtype == 'image' && $cover == elgg_echo('album:cover')) {
$album = get_entity($container_guid);
- $album->cover = $entity->guid;
+ $album->setCoverImageGuid($entity->guid);
}
// Success message
diff --git a/actions/edit_multi.php b/actions/edit_multi.php
index c938e6065..1d0e537b0 100644
--- a/actions/edit_multi.php
+++ b/actions/edit_multi.php
@@ -49,7 +49,7 @@ foreach($image_guid_array as $key => $im) {
//if cover meta is sent from image save as metadata
if ($cover == $im) {
- $album_entity->cover = $im;
+ $album_entity->setCoverImageGuid($im);
}
}
}