This reverts commit b3fb04b463.
The problem is *not* getContextTitle() - that's the correct
function to call here. The problem is that something is creating
an EditPage instance without calling setContextTitle() - that's
what needs to be fixed.
Change-Id: Ibc8280c7434bee4c4697142bcdbc1194f00c53c1
This is apparently the only code relying on the fallback. Since it seems to do this most of the time, use $wgTitle directly.
Bug: T176526
Change-Id: I9edc7c3cb7b0f2b024873b2f6fbdb8c275225854
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
Change-Id: Ib22f4c45d54424fe46e4f2a0c5f0ad7cc3866340