aboutsummaryrefslogtreecommitdiff
path: root/upgrades/2012022501.php
diff options
context:
space:
mode:
Diffstat (limited to 'upgrades/2012022501.php')
-rw-r--r--upgrades/2012022501.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/upgrades/2012022501.php b/upgrades/2012022501.php
index 70f4398c4..e109406d6 100644
--- a/upgrades/2012022501.php
+++ b/upgrades/2012022501.php
@@ -54,6 +54,16 @@ function videolist_2012022501($item) {
$item->deleteMetadata('embedurl');
}
upgrade_change_subtype($item, 'videolist_item');
+
+ // update river
+ $options = array('object_guid' => $item->guid);
+ $river_items = elgg_get_river($options);
+ foreach($river_items as $river_item) {
+ if ($river_item->action_type == 'create') {
+ upgrade_update_river($river_item->id, 'river/object/videolist_item/create', $item->guid, 0);
+ }
+ }
+
return true;
}