From 316feffced951b082a59f64d1788ca34f37b83cd Mon Sep 17 00:00:00 2001 From: josch Date: Thu, 14 Feb 2008 21:55:08 +0000 Subject: [PATCH] embed=(video|preview) git-svn-id: http://yolanda.mister-muffin.de/svn@238 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/video.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/trunk/video.pl b/trunk/video.pl index 68b6120..a6f0db1 100644 --- a/trunk/video.pl +++ b/trunk/video.pl @@ -72,7 +72,14 @@ elsif($query->url_param('title') or $query->url_param('id')) } elsif($rowcount == 1) { - $page->{'embed'} = $query->param('embed') eq 'true' ? "true" : "false"; + if($query->param('embed') eq "video") + { + $page->{'embed'} = "video"; + } + elsif($query->param('embed') eq "preview") + { + $page->{'embed'} = "preview"; + } #if there was a single result, display the video my ($id, $title, $description, $publisher, $timestamp, $creator, $subject,