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' =>