From: Fomafix Date: Mon, 11 Mar 2019 16:50:46 +0000 (+0100) Subject: OutputPage: Use $this->getUser() X-Git-Tag: 1.34.0-rc.0~2562 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=e0b5e4832c11e2ac4bdaa1c433539ba3b4ca89da;p=lhc%2Fweb%2Fwiklou.git OutputPage: Use $this->getUser() Use $this->getUser() instead of $this->getContext()->getUser(). ContextSource::getUser is a shortcut for $this->getContext()->getUser(). Change-Id: I7d19116b634500cd1a435bebe235c7562889f7bb --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 9b7d9a0642..732e363261 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1614,7 +1614,7 @@ class OutputPage extends ContextSource { } 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.