dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
34de93f
)
Merge "MediaWiki.php: Make getUrlDomainDistance() actually static"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Sat, 15 Oct 2016 18:00:28 +0000
(18:00 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Sat, 15 Oct 2016 18:00:28 +0000
(18:00 +0000)
includes/MediaWiki.php
patch
|
blob
|
history
diff --git
a/includes/MediaWiki.php
b/includes/MediaWiki.php
index
218337a
..
f21128e
100644
(file)
--- a/
includes/MediaWiki.php
+++ b/
includes/MediaWiki.php
@@
-678,7
+678,7
@@
class MediaWiki {
* @param IContextSource $context
* @return string|bool Either "local" or "remote" if in the farm, false otherwise
*/
- private function getUrlDomainDistance( $url, IContextSource $context ) {
+ private
static
function getUrlDomainDistance( $url, IContextSource $context ) {
static $relevantKeys = [ 'host' => true, 'port' => true ];
$infoCandidate = wfParseUrl( $url );