@@ 2438-2454 (lines=17) @@ | ||
2435 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
2436 | $wgOut->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n$1\n</div>", |
|
2437 | [ 'userpage-userdoesnotexist', wfEscapeWikiText( $username ) ] ); |
|
2438 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
2439 | # Show log extract if the user is currently blocked |
|
2440 | LogEventsList::showLogExtract( |
|
2441 | $wgOut, |
|
2442 | 'block', |
|
2443 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
2444 | '', |
|
2445 | [ |
|
2446 | 'lim' => 1, |
|
2447 | 'showIfEmpty' => false, |
|
2448 | 'msgKey' => [ |
|
2449 | 'blocked-notice-logextract', |
|
2450 | $user->getName() # Support GENDER in notice |
|
2451 | ] |
|
2452 | ] |
|
2453 | ); |
|
2454 | } |
|
2455 | } |
|
2456 | # Try to add a custom edit intro, or use the standard one if this is not possible. |
|
2457 | if ( !$this->showCustomIntro() && !$this->mTitle->exists() ) { |
@@ 1247-1264 (lines=18) @@ | ||
1244 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
1245 | $outputPage->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n\$1\n</div>", |
|
1246 | [ 'userpage-userdoesnotexist-view', wfEscapeWikiText( $rootPart ) ] ); |
|
1247 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
1248 | # Show log extract if the user is currently blocked |
|
1249 | LogEventsList::showLogExtract( |
|
1250 | $outputPage, |
|
1251 | 'block', |
|
1252 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
1253 | '', |
|
1254 | [ |
|
1255 | 'lim' => 1, |
|
1256 | 'showIfEmpty' => false, |
|
1257 | 'msgKey' => [ |
|
1258 | 'blocked-notice-logextract', |
|
1259 | $user->getName() # Support GENDER in notice |
|
1260 | ] |
|
1261 | ] |
|
1262 | ); |
|
1263 | $validUserPage = !$title->isSubpage(); |
|
1264 | } else { |
|
1265 | $validUserPage = !$title->isSubpage(); |
|
1266 | } |
|
1267 | } |