]> iEval git - app-web-oof.git/blobdiff - lib/App/Web/Oof.pm
Fix picture list in item details
[app-web-oof.git] / lib / App / Web / Oof.pm
index 61c4ecf166cb58d391f590b389673139e11e3f65..3e76325eda5509c2ce55d8f5c6031b1ca627b3ad 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use utf8;
 use parent qw/Plack::Component/;
 
-our $VERSION = '0.000_002';
+our $VERSION = '0.000_003';
 
 use DBIx::Simple;
 use File::Slurp;
@@ -208,7 +208,7 @@ sub details_app {
        $tree->find('title')->replace_content("Pictures of $title | ledparts4you");
        $tree->find('h2')->replace_content($title);
        $tree->look_down(rel => 'canonical')->attr(href => "/details/$id/$slug");
-       $tree->fid('pictures')->iter3(\@pics, \&details_list_element);
+       $tree->fid('pictures')->find('li')->iter3(\@pics, \&details_list_element);
 
        [200, ['Content-type' => 'text/html; charset=utf-8'], [$tree->as_HTML]]
 }
This page took 0.018382 seconds and 4 git commands to generate.