r73027 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73026‎ | r73027 | r73028 >
Date:22:30, 14 September 2010
Author:tparscal
Status:ok
Tags:
Comment:
Removed user parameter completely when not logged in
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -2299,8 +2299,8 @@
23002300 if ( count( $modules ) ) {
23012301 sort( $modules );
23022302 $query['modules'] = implode( '|', array_unique( (array) $modules ) );
2303 - if ( $group === 'user' ) {
2304 - $query['user'] = $wgUser->isLoggedIn() ? $wgUser->getName() : null;
 2303+ if ( $group === 'user' && $wgUser->isLoggedIn() ) {
 2304+ $query['user'] = $wgUser->getName();
23052305 }
23062306 // Users might change their stuff on-wiki like site or user pages, or user preferences; we need to find
23072307 // the highest timestamp of these user-changable modules so we can ensure cache misses upon change

Status & tagging log