aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/object/videolist_item.php2
-rw-r--r--views/default/videolist/watch.php8
2 files changed, 9 insertions, 1 deletions
diff --git a/views/default/object/videolist_item.php b/views/default/object/videolist_item.php
index a1943216d..474394288 100644
--- a/views/default/object/videolist_item.php
+++ b/views/default/object/videolist_item.php
@@ -62,7 +62,7 @@ if (elgg_in_context('widgets')) {
if ($full && !elgg_in_context('gallery')) {
$dimensions = elgg_get_config('videolist_dimensions');
- $content = elgg_view("videolist/watch/{$entity->videotype}", array(
+ $content = elgg_view("videolist/watch", array(
'entity' => $entity,
'width' => (int) $dimensions['width'],
'height' => (int) $dimensions['height'],
diff --git a/views/default/videolist/watch.php b/views/default/videolist/watch.php
new file mode 100644
index 000000000..2e1dbacec
--- /dev/null
+++ b/views/default/videolist/watch.php
@@ -0,0 +1,8 @@
+<?php
+
+$entity = elgg_extract('entity', $vars);
+if (elgg_view_exists("videolist/watch/$entity->videotype")) {
+ echo elgg_view("videolist/watch/$entity->videotype", $vars);
+} else {
+ echo elgg_view("videolist/watch/default", $vars);
+}