From: Michael J. Rubinsky Date: Sun, 15 Feb 2009 20:40:08 +0000 (-0500) Subject: If we have https, use https X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bca423dd934d79a209958740b0d91c7e667cb591;p=horde.git If we have https, use https --- diff --git a/framework/Service_Facebook/lib/Horde/Service/Facebook.php b/framework/Service_Facebook/lib/Horde/Service/Facebook.php index 16de1bbcb..20f227f64 100644 --- a/framework/Service_Facebook/lib/Horde/Service/Facebook.php +++ b/framework/Service_Facebook/lib/Horde/Service/Facebook.php @@ -301,7 +301,7 @@ class Horde_Service_Facebook */ public static function get_facebook_url($subdomain = 'www') { - return 'http://' . $subdomain . '.facebook.com'; + return (!empty($_SERVER['HTTPS']) ? 'https://' : 'http://') . $subdomain . '.facebook.com'; } /**