From 23fccd27081e71b89d749754e7c1f638059306da Mon Sep 17 00:00:00 2001 From: Fomafix Date: Tue, 23 Aug 2016 07:12:35 +0000 Subject: [PATCH] OutputPage.php: Reuse existing variable $user Follows-up to 81c291f2 Change-Id: Id32daf74549c8af886a46119b30ff29ab2a6ac94 --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 852a4ed391..c7499b1b45 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3096,7 +3096,7 @@ class OutputPage extends ContextSource { $user = $this->getUser(); - if ( !$this->getUser()->isLoggedIn() ) { + if ( !$user->isLoggedIn() ) { // Anons have predictable edit tokens return false; } -- 2.20.1