Loosened the CLI restriction in RequestContext::importScopedSession()
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 29 Sep 2014 23:53:26 +0000 (16:53 -0700)
committerOri.livneh <ori@wikimedia.org>
Wed, 1 Oct 2014 23:05:23 +0000 (23:05 +0000)
commitf9ee99b2fa558eadf323fd89b8f9579e56aa9d7c
tree099842d9ddb7405504f19563d339e57f037667d1
parentbd73b04259b0769c981b8ce961a07653c02ccceb
Loosened the CLI restriction in RequestContext::importScopedSession()

* Jobs can be run via HTTP runners rather than just CLI ones.
  The old check breaks jobs run on HHVM fcgi runners for example.
* Always check the validity of the IP for sanity.

Change-Id: I1d03c2ab6628b2d124bc7b9f6936788dea22e3e4
includes/context/RequestContext.php