Avoid [GlobalTitleFail] spam
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 26 Sep 2014 17:18:43 +0000 (19:18 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 26 Sep 2014 17:58:02 +0000 (19:58 +0200)
commit010cdb436008df7ef35198eb21981abd54c0df98
tree4162ace9e0a52e0316fc690caa6fee6ccf864e0f
parent64a954da742f49a8acb71a45f2d9175410c097e5
Avoid [GlobalTitleFail] spam

MediaWiki::getTitle is checking, if a title is set on the context, but
that needs to call RequestContext::getTitle, which gives a warning, when
no title is set:

RequestContext::getTitle called by MediaWiki::getTitle with no title
set.

Adding a RequestContext::hasTitle function to check the title and avoid
the warning. Was added in I72c5c3fb75c9ceff02390c91b3735f2da90845de.

Change-Id: I4d8f8ef799cd91f0d2affe881019583ac77a31b7
includes/MediaWiki.php
includes/context/RequestContext.php