Use Horde::selfUrl - I guess...
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 15 Feb 2009 20:50:39 +0000 (15:50 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 15 Feb 2009 20:50:39 +0000 (15:50 -0500)
framework/Service_Facebook/lib/Horde/Service/Facebook.php

index 1047a7b..7639ec4 100644 (file)
@@ -259,7 +259,10 @@ class Horde_Service_Facebook
 
     public static function current_url()
     {
-        return (!empty($_SERVER['HTTP']) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
+        // Is this autoloadable / should we just copy this functionality to avoid
+        // the dependency?
+        require_once 'Horde.php';
+        return Horde::selfUrl(true, true, true, false);
     }
 
     /**