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