Zeile 130 | Zeile 130 |
---|
$link_to_day = false; // Any events on this specific day?
|
$link_to_day = false; // Any events on this specific day?
|
if(@count($events_cache["$day-$calendar_month-$calendar_year"]) > 0)
| if(!empty($events_cache["$day-$calendar_month-$calendar_year"]))
|
{ $link_to_day = true; }
| { $link_to_day = true; }
|
Zeile 152 | Zeile 152 |
---|
} if($link_to_day) {
|
} if($link_to_day) {
|
$day_link = "<a href=\"".get_calendar_link($calendar['cid'], $calendar_year, $calendar_month, $day)."\">{$day}</a>";
| $calendar['link'] = get_calendar_link($calendar['cid'], $calendar_year, $calendar_month, $day); eval("\$day_link = \"".$templates->get("calendar_mini_weekrow_day_link")."\";");
|
} else {
| } else {
|
Zeile 429 | Zeile 430 |
---|
{ global $db, $mybb;
|
{ global $db, $mybb;
|
// We take in to account timezones here - we add/subtract 12 hours from our GMT time ranges
| // We take in to account timezones here - we either add 14 hours or subtract 12 hours from our GMT time ranges
|
$start -= 12*3600;
|
$start -= 12*3600;
|
$end += 12*3600;
| $end += 14*3600;
|
$visible_where = ''; if($unapproved != 1)
| $visible_where = ''; if($unapproved != 1)
|
Zeile 451 | Zeile 452 |
---|
{ if($event['ignoretimezone'] == 0) {
|
{ if($event['ignoretimezone'] == 0) {
|
$offset = $event['timezone'];
| $offset = (float)$event['timezone'];
|
} else {
|
} else {
|
$offset = $mybb->user['timezone'];
| $offset = (float)$mybb->user['timezone'];
|
} $event['starttime_user'] = $event['starttime']+($offset*3600);
| } $event['starttime_user'] = $event['starttime']+($offset*3600);
|
Zeile 513 | Zeile 514 |
---|
} else if(!$first) {
|
} else if(!$first) {
|
if(!isset($events_cache[$day_date]))
| if(!isset($events_cache[$day_date]) || !is_array($events_cache[$day_date]))
|
{ $events_cache[$day_date] = array(); }
| { $events_cache[$day_date] = array(); }
|