From 4438e03c62962ecf6265eddcb3d2c6e761638cda Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 5 Jul 2015 12:23:00 -0400 Subject: Set the assignee as organizer for ical events --- app/Helper/Url.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Helper/Url.php') diff --git a/app/Helper/Url.php b/app/Helper/Url.php index e133f195..8de63f8d 100644 --- a/app/Helper/Url.php +++ b/app/Helper/Url.php @@ -99,6 +99,10 @@ class Url extends \Core\Base */ public function server() { + if (empty($_SERVER['SERVER_NAME'])) { + return 'http://localhost/'; + } + $self = str_replace('\\', '/', dirname($_SERVER['PHP_SELF'])); $url = Request::isHTTPS() ? 'https://' : 'http://'; -- cgit v1.2.3