Followup r94375; Use PROTO_RELATIVE so that when $wgServer is a protocol relative...
[lhc/web/wiklou.git] / includes / Title.php
index ba86d60..c58fff8 100644 (file)
@@ -843,7 +843,7 @@ class Title {
                # Expand the url to make it a full url. Note that getLocalURL has the
                # potential to output full urls for a variety of reasons, so we use
                # wfExpandUrl instead of simply prepending $wgServer
-               $url = wfExpandUrl( $url );
+               $url = wfExpandUrl( $url, PROTO_RELATIVE );
                
                # Finally, add the fragment.
                $url .= $this->getFragmentForURL();