Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2299,8 +2299,8 @@ |
2300 | 2300 | if ( count( $modules ) ) { |
2301 | 2301 | sort( $modules ); |
2302 | 2302 | $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(); |
2305 | 2305 | } |
2306 | 2306 | // Users might change their stuff on-wiki like site or user pages, or user preferences; we need to find |
2307 | 2307 | // the highest timestamp of these user-changable modules so we can ensure cache misses upon change |