From cd216f6feae68146c8997a17c9fa37b674357b63 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Sat, 6 Oct 2012 21:01:26 +0200 Subject: upgrade river --- upgrades/2012022501.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'upgrades') 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; } -- cgit v1.2.3