Use $this->getUser() instead of $this->getContext()->getUser().
ContextSource::getUser is a shortcut for $this->getContext()->getUser().
Change-Id: I7d19116b634500cd1a435bebe235c7562889f7bb
}
if ( !$this->mParserOptions ) {
- if ( !$this->getContext()->getUser()->isSafeToLoad() ) {
+ if ( !$this->getUser()->isSafeToLoad() ) {
// $wgUser isn't unstubbable yet, so don't try to get a
// ParserOptions for it. And don't cache this ParserOptions
// either.