Skip to content

Commit

Permalink
error en slotlet
Browse files Browse the repository at this point in the history
  • Loading branch information
jpablop committed Feb 19, 2014
1 parent ca9c8c9 commit 364b046
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/slotlet/slotlets/ArticleGalleryGallerySlotlet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function render($options = array())

$compose_article_groups_articles = '';

$id = 0;
$i = 0;
foreach($article_groups as $text => $article_group)
{

Expand All @@ -246,12 +246,12 @@ public function render($options = array())
$compose_article_groups_articles .= strtr($article_gallery_article, array(
'%article_gallery_id%' => $id_elemento,
'%element_class%' => "article_gallery_element_$i_$j",
'%title%' => $articles[$i]->__toString(),
'%description%' => $articles[$i]->getDescription(),
'%url%' => url_for($articles[$i]->getURLReference()),
'%target%' => $articles[$i]->getTarget(),
'%section%' => ($articles[$i]->getSection()?$articles[$i]->getSection()->getTitle():''),
'%section_color%' => ($articles[$i]->getSection()?$articles[$i]->getSection()->getColor():'')
'%title%' => $articles[$j]->__toString(),
'%description%' => $articles[$j]->getDescription(),
'%url%' => url_for($articles[$j]->getURLReference()),
'%target%' => $articles[$j]->getTarget(),
'%section%' => ($articles[$j]->getSection()?$articles[$j]->getSection()->getTitle():''),
'%section_color%' => ($articles[$j]->getSection()?$articles[$j]->getSection()->getColor():'')
));
}
$i++;
Expand Down

0 comments on commit 364b046

Please sign in to comment.