Set main RequestContext title in api.php
authorBrad Jorsch <bjorsch@wikimedia.org>
Sat, 14 Mar 2015 01:11:13 +0000 (21:11 -0400)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 15 Mar 2015 19:27:54 +0000 (19:27 +0000)
commit8f176b04c97baf152ea9ce73ad60247dc01885b6
tree38781bd6b87123025221ae2da2ea5a24b04af60c
parent631fa2255df7d96b282d8a266942893740899321
Set main RequestContext title in api.php

We set $wgTitle to a dummy title, and RequestContext::getMain()->getTitle()
falls back to that so everything *works*, but RequestContext whines
about it.

Set the same dummy title explicitly on RequestContext::getMain() to shut
things up.

Bug: T78414
Change-Id: I5b90df16cf2f51a6edd5898e9712161f335202a7
api.php