From d906ad3f31613b5110883fd4ee26d4da3d50fd7a Mon Sep 17 00:00:00 2001 From: erlehmann Date: Thu, 11 Oct 2007 16:29:13 +0000 Subject: [PATCH] clean code git-svn-id: http://yolanda.mister-muffin.de/svn@27 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/search.pl | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/trunk/search.pl b/trunk/search.pl index 316d4c8..a7a0a2c 100644 --- a/trunk/search.pl +++ b/trunk/search.pl @@ -30,14 +30,22 @@ if($query->param('query')) { while (my ($title, $caption) = $sth->fetchrow_array()) { #really obfuscated array/hash creation - push @{ $page->{'results'}->{'result'} }, { 'thumbnail' => ['./video-stills/225x150/4chan_city_mashup.png'], - 'rdf:RDF' => { 'cc:Work' => { 'rdf:about' => './videos/1050x700/4chan_city_mashup.ogg', - 'dc:title' => [$title] - }, - 'cc:License' => { 'rdf:about' => 'http://creativecommons.org/licenses/GPL/2.0/' - } - } - }; + push @{ $page->{'results'}->{'result'} }, + { + 'thumbnail' => ['./video-stills/225x150/4chan_city_mashup.png'], + 'rdf:RDF' => + { + 'cc:Work' => + { + 'rdf:about' => './videos/1050x700/4chan_city_mashup.ogg', + 'dc:title' => [$title] + }, + 'cc:License' => + { + 'rdf:about' => 'http://creativecommons.org/licenses/GPL/2.0/' + } + } + }; } #finish query