embed=(video|preview)

git-svn-id: http://yolanda.mister-muffin.de/svn@238 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2008-02-14 21:55:08 +00:00
parent 6ad0e6c278
commit 316feffced

View file

@ -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,