HomePhabricator

Title::getLinkURL(): Allow expanding PROTO_RELATIVE too

Authored by Legoktm on Jun 1 2016, 3:11 AM.

Description

Title::getLinkURL(): Allow expanding PROTO_RELATIVE too

Allow callers to get protocol-relative URLs by passing the
PROTO_RELATIVE constant. Since most callers don't pass in $proto, this
shouldn't change very much since the default of non-expanded is
effectively the same, but expanding to a protocol-relative URL when it
is not intended should still be safe.

A few callers that explicitly specified the default in core were also
updated.

Change-Id: I214f17aa6e8e30b647f21f0951fc3a15e87850c7

Details

Committed
LegoktmJul 1 2016, 6:31 PM
Parents
rMWc57fd3008fd8: Update OOjs UI to v0.17.4
Branches
Unknown
Tags
Unknown
ChangeId
I214f17aa6e8e30b647f21f0951fc3a15e87850c7