Skip to content

Commit

Permalink
Fixed bug with wrong columns count
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Dec 3, 2013
1 parent 2263095 commit 0bc261f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MadeYourDay/Contao/Columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ public function getContentElementHook($row, $content, $element)
if (
isset($GLOBALS['TL_RS_COLUMNS'][$parentKey])
&& $GLOBALS['TL_RS_COLUMNS'][$parentKey]['active']
&& $row->type !== 'rs_columns_start'
&& $row->type !== 'rs_columns_stop'
&& $row->type !== 'rs_column_start'
&& $row->type !== 'rs_column_stop'
) {

$count = $GLOBALS['TL_RS_COLUMNS'][$parentKey]['count']++;
$GLOBALS['TL_RS_COLUMNS'][$parentKey]['count']++;
$count = $GLOBALS['TL_RS_COLUMNS'][$parentKey]['count'];

if ($count) {

$classes = array('rs-column');
Expand Down

0 comments on commit 0bc261f

Please sign in to comment.