aboutsummaryrefslogtreecommitdiff
path: root/watch.php
diff options
context:
space:
mode:
authorBrett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-26 21:07:39 +0000
committerBrett Profitt <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-26 21:07:39 +0000
commita8aa4bceed8e7ad0c5af2646a83d6a2da2e0b23a (patch)
treebb3e25e40d98a445182632273495357bb28177e4 /watch.php
parented69694b30a9ab913349a5d17ca0bde94056bac1 (diff)
downloadelgg-a8aa4bceed8e7ad0c5af2646a83d6a2da2e0b23a.tar.gz
elgg-a8aa4bceed8e7ad0c5af2646a83d6a2da2e0b23a.tar.bz2
Changed line endings to unix-style for videolist plugin.
Diffstat (limited to 'watch.php')
-rw-r--r--watch.php88
1 files changed, 44 insertions, 44 deletions
diff --git a/watch.php b/watch.php
index 6d0542a2f..982bb8851 100644
--- a/watch.php
+++ b/watch.php
@@ -1,44 +1,44 @@
-<?php
-
- /**
- * Elgg Video Plugin
- * This plugin allows users to create a library of youtube/vimeo/metacafe videos
- *
- * @package Elgg
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Prateek Choudhary <synapticfield@gmail.com>
- * @copyright Prateek Choudhary
- */
-require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
-
-
- // Get objects
- $video_id = (int) get_input('video_id');
-
- // If we can get out the video corresponding to video_id object ...
- if ($videos = get_entity($video_id)) {
- set_page_owner($videos->container_guid);
- $videos_container = get_entity($videos->container_guid);
- if($videos_container->type == "group")
- set_context("groupsvideos");
- $page_owner = page_owner_entity();
- $title = sprintf(elgg_echo("videolist:home"),page_owner_entity()->name);
- // Display it
- $area2 = elgg_view("object/watch",array(
- 'entity' => $video_id,
- 'entity_owner' => $page_owner,
- 'full' => true
- ));
- //$area2 .= elgg_view("videolist/comments", array('entity' => $videos));
- $body = elgg_view_layout("one_column_with_sidebar", $area1 . $area2);
- }
- else
- {
- // Display the 'post not found' page instead
- $body = elgg_view("videolist/notfound");
- $title = elgg_echo("video:none");
-
- }
- // Finally draw the page
- page_draw($title, $body);
-?>
+<?php
+
+ /**
+ * Elgg Video Plugin
+ * This plugin allows users to create a library of youtube/vimeo/metacafe videos
+ *
+ * @package Elgg
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Prateek Choudhary <synapticfield@gmail.com>
+ * @copyright Prateek Choudhary
+ */
+require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+
+ // Get objects
+ $video_id = (int) get_input('video_id');
+
+ // If we can get out the video corresponding to video_id object ...
+ if ($videos = get_entity($video_id)) {
+ set_page_owner($videos->container_guid);
+ $videos_container = get_entity($videos->container_guid);
+ if($videos_container->type == "group")
+ set_context("groupsvideos");
+ $page_owner = page_owner_entity();
+ $title = sprintf(elgg_echo("videolist:home"),page_owner_entity()->name);
+ // Display it
+ $area2 = elgg_view("object/watch",array(
+ 'entity' => $video_id,
+ 'entity_owner' => $page_owner,
+ 'full' => true
+ ));
+ //$area2 .= elgg_view("videolist/comments", array('entity' => $videos));
+ $body = elgg_view_layout("one_column_with_sidebar", $area1 . $area2);
+ }
+ else
+ {
+ // Display the 'post not found' page instead
+ $body = elgg_view("videolist/notfound");
+ $title = elgg_echo("video:none");
+
+ }
+ // Finally draw the page
+ page_draw($title, $body);
+?>