Commit f4e0b600 authored by Reinette's avatar Reinette Committed by Robert Rollins

Issue #2156331: Fixed UIDs generated on load-balanced servers.

parent a1724355
......@@ -196,7 +196,8 @@ class date_ical_plugin_row_ical_entity extends views_plugin_row {
return;
}
$date_field = $items[$delta];
$domain = check_plain($_SERVER['SERVER_NAME']);
global $base_url;
$domain = preg_replace('#^https?://#', '', $base_url);
$entity->date_id[] = "calendar.$id.$field_name.$delta@$domain";
if (!empty($date_field['value'])) {
......
......@@ -190,7 +190,8 @@ class date_ical_plugin_row_ical_fields extends views_plugin_row {
}
}
$entity_id = $row->{$this->view->base_field};
$domain = check_plain($_SERVER['SERVER_NAME']);
global $base_url;
$domain = preg_replace('#^https?://#', '', $base_url);
$event['uid'] = "calendar.$entity_id.$date_field_name.$date_field_delta@$domain";
// Because of the way that Date implements repeating dates, we're going to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment