summaryrefslogtreecommitdiff
path: root/lib/Kolab/FreeBusy/Source.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-01-16 18:01:23 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-01-16 18:01:23 (GMT)
commit3e02b5d64da8869f308fd517429b40311a1f61d4 (patch)
tree96b5b3d9b8170a25f15d384286b553b12c229cf9 /lib/Kolab/FreeBusy/Source.php
parent0054e800228ce53eae18fc531d122976cdac6510 (diff)
downloadkolab-freebusy-3e02b5d64da8869f308fd517429b40311a1f61d4.tar.gz
Implement fetching free/busy data from external URL
Diffstat (limited to 'lib/Kolab/FreeBusy/Source.php')
-rw-r--r--lib/Kolab/FreeBusy/Source.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Kolab/FreeBusy/Source.php b/lib/Kolab/FreeBusy/Source.php
index 1af5ba3..53c4d0f 100644
--- a/lib/Kolab/FreeBusy/Source.php
+++ b/lib/Kolab/FreeBusy/Source.php
@@ -17,11 +17,12 @@ abstract class Source
public static function factory($url)
{
$config = parse_url($url);
+ $config['url'] = $url;
switch ($config['scheme']) {
case 'file': return new SourceFile($config);
case 'imap': return new SourceIMAP($config);
case 'http':
- case 'https': return new SourceURL($url);
+ case 'https': return new SourceURL($config);
}
trigger_error("Invalid source configuration: " . $url, E_USER_ERROR);