aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/staticvideo/index.php3
-rw-r--r--views/rss/videolist/videolist.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/views/default/staticvideo/index.php b/views/default/staticvideo/index.php
index d8619917e..e5f6d8fad 100644
--- a/views/default/staticvideo/index.php
+++ b/views/default/staticvideo/index.php
@@ -12,7 +12,8 @@
$owner = $_SESSION['guid'];
$number = 10;
-$owner_videos = get_entities("object", "videolist", $_SESSION['guid'], $number);
+$owner_videos = elgg_get_entities(array('types' => 'object', 'subtypes' => 'videolist', 'owner_guids' => $_SESSION['guid']));
+//get_entities("object", "videolist", $_SESSION['guid'], $number);
$videodiv = '';
$width = "390";
$height = "275";
diff --git a/views/rss/videolist/videolist.php b/views/rss/videolist/videolist.php
index 86ea686ba..7745b070b 100644
--- a/views/rss/videolist/videolist.php
+++ b/views/rss/videolist/videolist.php
@@ -9,7 +9,7 @@
* @copyright Prateek Choudhary
*/
- if ($foreach = get_entities('object','',$vars['entity']->guid)) {
+ if ($foreach = elgg_get_entities(array('types' => 'object', 'subtypes' => 'videolist'))) {
foreach($foreach as $videos)
echo elgg_view_entity($videos);
}