Title::getLinkURL(): Allow expanding PROTO_RELATIVE too
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 1 Jun 2016 03:11:31 +0000 (20:11 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 1 Jul 2016 18:31:56 +0000 (11:31 -0700)
commit5e11a28e7a75af86d7547857bb74ce1c216a3673
treef25d8358a8acf73f2427c1e85d22a9c1b1a5dfab
parentc57fd3008fd89453fd8b43f82501353280b6a991
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
includes/Title.php
includes/linker/LinkRenderer.php
includes/revisiondelete/RevDelArchivedFileItem.php
includes/revisiondelete/RevDelFileItem.php