aboutsummaryrefslogtreecommitdiff
path: root/upgrades
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-10-06 21:01:26 +0200
committerroot <root@delvj.org>2012-10-06 21:01:33 +0200
commitcd216f6feae68146c8997a17c9fa37b674357b63 (patch)
treef9d63dcd360fe23f5b6df30d948c9c24bbc8ce3b /upgrades
parent34c2063a5e35817a2cb8a91ec7edd2a12fd0a57e (diff)
downloadelgg-cd216f6feae68146c8997a17c9fa37b674357b63.tar.gz
elgg-cd216f6feae68146c8997a17c9fa37b674357b63.tar.bz2
upgrade river
Diffstat (limited to 'upgrades')
-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;
}