EditPage: Add getContext() function
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 24 Aug 2016 00:48:43 +0000 (17:48 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 24 Aug 2016 01:56:59 +0000 (18:56 -0700)
commit841c4076574bc2f390092ea6ae85c9248a999008
tree15ff84a17ddff3820968f67ea6256464ec1d6c8b
parent47437e0653542aae57ea456b24486efb48ee8aac
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
EditPage.

Change-Id: I17130bdaf214e9bbe0577a0ee5564ca4760c99e1
includes/EditPage.php