From 8f69d20210b6ca7982ea902791532b0e2567c679 Mon Sep 17 00:00:00 2001 From: josch Date: Fri, 19 Oct 2007 16:59:19 +0000 Subject: [PATCH] added thumbnails git-svn-id: http://yolanda.mister-muffin.de/svn@93 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/init_sql.pl | 2 +- trunk/search.pl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/init_sql.pl b/trunk/init_sql.pl index ac6ead3..4f63ed2 100644 --- a/trunk/init_sql.pl +++ b/trunk/init_sql.pl @@ -26,7 +26,7 @@ $dbh->do(qq{create table $dbh->do(qq{insert into tagcloud values ( - 'web tv', 68 + 'web tv', 68 ) }) or die $dbh->errstr; diff --git a/trunk/search.pl b/trunk/search.pl index 361d511..bcd5437 100644 --- a/trunk/search.pl +++ b/trunk/search.pl @@ -36,7 +36,7 @@ if($query->param('query')) #before code cleanup, this was a really obfuscated array/hash creation push @{ $page->{'results'}->{'result'} }, { - 'thumbnail' => ['./video-stills/225x150/4chan_city_mashup.png'], + 'thumbnail' => ["./video-stills/$id"], 'rdf:RDF' => { 'cc:Work' => @@ -66,7 +66,7 @@ if($query->param('query')) #print xml print XMLout($page, KeyAttr => {}, XMLDecl => $XMLDecl, RootName => 'page'); } -if($query->param('sort')) +elsif($query->param('sort')) { %page = (); @@ -95,7 +95,7 @@ if($query->param('sort')) #before code cleanup, this was a really obfuscated array/hash creation push @{ $page->{'results'}->{'result'} }, { - 'thumbnail' => ['./video-stills/225x150/4chan_city_mashup.png'], + 'thumbnail' => ["./video-stills/$id"], 'rdf:RDF' => { 'cc:Work' =>