@@ 1252-1269 (lines=18) @@ | ||
1249 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
1250 | $outputPage->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n\$1\n</div>", |
|
1251 | [ 'userpage-userdoesnotexist-view', wfEscapeWikiText( $rootPart ) ] ); |
|
1252 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
1253 | # Show log extract if the user is currently blocked |
|
1254 | LogEventsList::showLogExtract( |
|
1255 | $outputPage, |
|
1256 | 'block', |
|
1257 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
1258 | '', |
|
1259 | [ |
|
1260 | 'lim' => 1, |
|
1261 | 'showIfEmpty' => false, |
|
1262 | 'msgKey' => [ |
|
1263 | 'blocked-notice-logextract', |
|
1264 | $user->getName() # Support GENDER in notice |
|
1265 | ] |
|
1266 | ] |
|
1267 | ); |
|
1268 | $validUserPage = !$title->isSubpage(); |
|
1269 | } else { |
|
1270 | $validUserPage = !$title->isSubpage(); |
|
1271 | } |
|
1272 | } |
@@ 2460-2476 (lines=17) @@ | ||
2457 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
2458 | $wgOut->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n$1\n</div>", |
|
2459 | [ 'userpage-userdoesnotexist', wfEscapeWikiText( $username ) ] ); |
|
2460 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
2461 | # Show log extract if the user is currently blocked |
|
2462 | LogEventsList::showLogExtract( |
|
2463 | $wgOut, |
|
2464 | 'block', |
|
2465 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
2466 | '', |
|
2467 | [ |
|
2468 | 'lim' => 1, |
|
2469 | 'showIfEmpty' => false, |
|
2470 | 'msgKey' => [ |
|
2471 | 'blocked-notice-logextract', |
|
2472 | $user->getName() # Support GENDER in notice |
|
2473 | ] |
|
2474 | ] |
|
2475 | ); |
|
2476 | } |
|
2477 | } |
|
2478 | # Try to add a custom edit intro, or use the standard one if this is not possible. |
|
2479 | if ( !$this->showCustomIntro() && !$this->mTitle->exists() ) { |