EditPage: Add getContext() function

Authored by Legoktm on Aug 24 2016, 12:48 AM.

Unpublished Commit · Learn More

Publishing Disabled: All publishing is disabled for this repository.


EditPage: Add getContext() function

EditPage already has access to a IContextSource object via
$this->mArticle->getContext(), but no code ever uses it. Add a
$this->getContext() helper function and $this->context member variable
so developers are aware that RequestContext is available and should be
used instead of globals. This is the first step to de-globalifying

Change-Id: I17130bdaf214e9bbe0577a0ee5564ca4760c99e1