| @@ 1259-1276 (lines=18) @@ | ||
| 1256 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
| 1257 | $outputPage->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n\$1\n</div>", |
|
| 1258 | [ 'userpage-userdoesnotexist-view', wfEscapeWikiText( $rootPart ) ] ); |
|
| 1259 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
| 1260 | # Show log extract if the user is currently blocked |
|
| 1261 | LogEventsList::showLogExtract( |
|
| 1262 | $outputPage, |
|
| 1263 | 'block', |
|
| 1264 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
| 1265 | '', |
|
| 1266 | [ |
|
| 1267 | 'lim' => 1, |
|
| 1268 | 'showIfEmpty' => false, |
|
| 1269 | 'msgKey' => [ |
|
| 1270 | 'blocked-notice-logextract', |
|
| 1271 | $user->getName() # Support GENDER in notice |
|
| 1272 | ] |
|
| 1273 | ] |
|
| 1274 | ); |
|
| 1275 | $validUserPage = !$title->isSubpage(); |
|
| 1276 | } else { |
|
| 1277 | $validUserPage = !$title->isSubpage(); |
|
| 1278 | } |
|
| 1279 | } |
|
| @@ 2396-2412 (lines=17) @@ | ||
| 2393 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
| 2394 | $out->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n$1\n</div>", |
|
| 2395 | [ 'userpage-userdoesnotexist', wfEscapeWikiText( $username ) ] ); |
|
| 2396 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
| 2397 | # Show log extract if the user is currently blocked |
|
| 2398 | LogEventsList::showLogExtract( |
|
| 2399 | $out, |
|
| 2400 | 'block', |
|
| 2401 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
| 2402 | '', |
|
| 2403 | [ |
|
| 2404 | 'lim' => 1, |
|
| 2405 | 'showIfEmpty' => false, |
|
| 2406 | 'msgKey' => [ |
|
| 2407 | 'blocked-notice-logextract', |
|
| 2408 | $user->getName() # Support GENDER in notice |
|
| 2409 | ] |
|
| 2410 | ] |
|
| 2411 | ); |
|
| 2412 | } |
|
| 2413 | } |
|
| 2414 | # Try to add a custom edit intro, or use the standard one if this is not possible. |
|
| 2415 | if ( !$this->showCustomIntro() && !$this->mTitle->exists() ) { |
|