| @@ 1263-1280 (lines=18) @@ | ||
| 1260 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
| 1261 | $outputPage->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n\$1\n</div>", |
|
| 1262 | [ 'userpage-userdoesnotexist-view', wfEscapeWikiText( $rootPart ) ] ); |
|
| 1263 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
| 1264 | # Show log extract if the user is currently blocked |
|
| 1265 | LogEventsList::showLogExtract( |
|
| 1266 | $outputPage, |
|
| 1267 | 'block', |
|
| 1268 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
| 1269 | '', |
|
| 1270 | [ |
|
| 1271 | 'lim' => 1, |
|
| 1272 | 'showIfEmpty' => false, |
|
| 1273 | 'msgKey' => [ |
|
| 1274 | 'blocked-notice-logextract', |
|
| 1275 | $user->getName() # Support GENDER in notice |
|
| 1276 | ] |
|
| 1277 | ] |
|
| 1278 | ); |
|
| 1279 | $validUserPage = !$title->isSubpage(); |
|
| 1280 | } else { |
|
| 1281 | $validUserPage = !$title->isSubpage(); |
|
| 1282 | } |
|
| 1283 | } |
|
| @@ 2354-2370 (lines=17) @@ | ||
| 2351 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
| 2352 | $wgOut->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n$1\n</div>", |
|
| 2353 | [ 'userpage-userdoesnotexist', wfEscapeWikiText( $username ) ] ); |
|
| 2354 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
| 2355 | # Show log extract if the user is currently blocked |
|
| 2356 | LogEventsList::showLogExtract( |
|
| 2357 | $wgOut, |
|
| 2358 | 'block', |
|
| 2359 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
| 2360 | '', |
|
| 2361 | [ |
|
| 2362 | 'lim' => 1, |
|
| 2363 | 'showIfEmpty' => false, |
|
| 2364 | 'msgKey' => [ |
|
| 2365 | 'blocked-notice-logextract', |
|
| 2366 | $user->getName() # Support GENDER in notice |
|
| 2367 | ] |
|
| 2368 | ] |
|
| 2369 | ); |
|
| 2370 | } |
|
| 2371 | } |
|
| 2372 | # Try to add a custom edit intro, or use the standard one if this is not possible. |
|
| 2373 | if ( !$this->showCustomIntro() && !$this->mTitle->exists() ) { |
|