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