OK, I was wrong. parse_url() doesn't need a full URL.
authorFrank J. Gómez <frank@ginkgostreet.com>
Wed, 22 Jul 2015 23:08:19 +0000 (19:08 -0400)
committerFrank J. Gómez <frank@ginkgostreet.com>
Wed, 22 Jul 2015 23:09:48 +0000 (19:09 -0400)
CRM/Event/Form/ManageEvent/TabHeader.php

index 0f885853b9a6ebbb0ecf90d0f6fd6a25fc9f5bce..34b55e506f46aff9502084c339de23ab95848215 100644 (file)
@@ -210,10 +210,8 @@ WHERE      e.id = %1
     return $tabs;
   }
 
-  // wraps CRM_Utils_System. assumes relative URL. needs real doc :-)
+  // wraps CRM_Utils_System. needs real doc :-)
   public static function url($url) {
-    // parse_url doesn't work with relative URLs, so we make the URL absolute
-    $url = 'http://discard/' . $url;
     $urlParts = parse_url($url);
     $path = (strpos($urlParts['path'], '/') === 0 ? substr($urlParts['path'], 1) : $urlParts['path']);