Skip to content
Snippets Groups Projects
Commit 994a530e authored by Karen Stevenson's avatar Karen Stevenson
Browse files

#285104, #284760 Roll back a change in calendar_build_week that changed where...

#285104, #284760 Roll back a change in calendar_build_week that changed where $curday_date was created.
parent 67205f96
Branches frontpage-dublin
No related tags found
No related merge requests found
......@@ -278,6 +278,7 @@ function calendar_build_week(&$curday, $view, $items, $params, $check_month = FA
);
}
for ($i = 0; $i < 7; $i++) {
$curday_date = date_format($curday, 'Y-m-d');
if ($check_month && ($curday_date < $view->min_date_date || $curday_date > $view->max_date_date || date_format($curday, 'n') != $month)) {
$class = strtolower($weekdays[$i] .
($view->mini ? ' mini' : ''));
......@@ -295,10 +296,6 @@ function calendar_build_week(&$curday, $view, $items, $params, $check_month = FA
$rows[$week][] = array(
'data' => $view->mini ? $content : '<div class="inner">'. $content .'</div>',
'class' => $class, 'id' => $view->name . '-' . $curday_date);
//skip the unnecessary date_format after the last iteration
if ($i < 6) {
$curday_date = date_format($curday, 'Y-m-d');
}
date_modify($curday, '+1 day');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment