From: Marius Gavrilescu Date: Sat, 5 Mar 2016 16:20:28 +0000 (+0000) Subject: Fix picture list in item details X-Git-Tag: 0.000_004~5 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=b66954a00daf8f8461626b52bee6030eac8843fd;p=app-web-oof.git Fix picture list in item details --- diff --git a/lib/App/Web/Oof.pm b/lib/App/Web/Oof.pm index 90cf972..3e76325 100644 --- a/lib/App/Web/Oof.pm +++ b/lib/App/Web/Oof.pm @@ -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]] }