HomePhabricator

Use $wgCanonicalServer instead of $wgServer

Authored by mobrovac.

Description

Use $wgCanonicalServer instead of $wgServer

Unlike $wgServer, $wgCanonicalServer always contains the protocol
portion of the URL, easing domain extraction.

Also:

  • better RegEx for extracting the domain from $wgCanonicalServer
    • now accounts for the possibility of $wgCanonicalServer having the form host:port
  • minor variable name fix in RestbaseUpdate.php

Bug: T87520
Change-Id: I4f4242e31aeb21cf7aaff9fed24e0f376a0da4d2

Details

Committed
mobrovacMar 9 2015, 9:22 PM
Parents
rERBU6c7f342690c8: Remove i18n shim for 1.22 and below
Branches
Unknown
Tags
Unknown
References
refs/changes/29/193829/2
ChangeId
I4f4242e31aeb21cf7aaff9fed24e0f376a0da4d2