OutputPage: Use $this->getUser()
authorFomafix <fomafix@googlemail.com>
Mon, 11 Mar 2019 16:50:46 +0000 (17:50 +0100)
committerFomafix <fomafix@googlemail.com>
Mon, 11 Mar 2019 16:51:33 +0000 (17:51 +0100)
Use $this->getUser() instead of $this->getContext()->getUser().
ContextSource::getUser is a shortcut for $this->getContext()->getUser().

Change-Id: I7d19116b634500cd1a435bebe235c7562889f7bb

includes/OutputPage.php

index 9b7d9a0..732e363 100644 (file)
@@ -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.