diff options
author | Pablo Martin <caedes@sindominio.net> | 2012-10-06 21:01:26 +0200 |
---|---|---|
committer | root <root@delvj.org> | 2012-10-06 21:01:33 +0200 |
commit | cd216f6feae68146c8997a17c9fa37b674357b63 (patch) | |
tree | f9d63dcd360fe23f5b6df30d948c9c24bbc8ce3b | |
parent | 34c2063a5e35817a2cb8a91ec7edd2a12fd0a57e (diff) | |
download | elgg-cd216f6feae68146c8997a17c9fa37b674357b63.tar.gz elgg-cd216f6feae68146c8997a17c9fa37b674357b63.tar.bz2 |
upgrade river
-rw-r--r-- | upgrades/2012022501.php | 10 |
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; } |