| @@ 1263-1280 (lines=18) @@ | ||
| 1260 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
| 1261 | $outputPage->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n\$1\n</div>", |
|
| 1262 | [ 'userpage-userdoesnotexist-view', wfEscapeWikiText( $rootPart ) ] ); |
|
| 1263 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
| 1264 | # Show log extract if the user is currently blocked |
|
| 1265 | LogEventsList::showLogExtract( |
|
| 1266 | $outputPage, |
|
| 1267 | 'block', |
|
| 1268 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
| 1269 | '', |
|
| 1270 | [ |
|
| 1271 | 'lim' => 1, |
|
| 1272 | 'showIfEmpty' => false, |
|
| 1273 | 'msgKey' => [ |
|
| 1274 | 'blocked-notice-logextract', |
|
| 1275 | $user->getName() # Support GENDER in notice |
|
| 1276 | ] |
|
| 1277 | ] |
|
| 1278 | ); |
|
| 1279 | $validUserPage = !$title->isSubpage(); |
|
| 1280 | } else { |
|
| 1281 | $validUserPage = !$title->isSubpage(); |
|
| 1282 | } |
|
| 1283 | } |
|
| @@ 2334-2350 (lines=17) @@ | ||
| 2331 | if ( !( $user && $user->isLoggedIn() ) && !$ip ) { # User does not exist |
|
| 2332 | $wgOut->wrapWikiMsg( "<div class=\"mw-userpage-userdoesnotexist error\">\n$1\n</div>", |
|
| 2333 | [ 'userpage-userdoesnotexist', wfEscapeWikiText( $username ) ] ); |
|
| 2334 | } elseif ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { |
|
| 2335 | # Show log extract if the user is currently blocked |
|
| 2336 | LogEventsList::showLogExtract( |
|
| 2337 | $wgOut, |
|
| 2338 | 'block', |
|
| 2339 | MWNamespace::getCanonicalName( NS_USER ) . ':' . $block->getTarget(), |
|
| 2340 | '', |
|
| 2341 | [ |
|
| 2342 | 'lim' => 1, |
|
| 2343 | 'showIfEmpty' => false, |
|
| 2344 | 'msgKey' => [ |
|
| 2345 | 'blocked-notice-logextract', |
|
| 2346 | $user->getName() # Support GENDER in notice |
|
| 2347 | ] |
|
| 2348 | ] |
|
| 2349 | ); |
|
| 2350 | } |
|
| 2351 | } |
|
| 2352 | # Try to add a custom edit intro, or use the standard one if this is not possible. |
|
| 2353 | if ( !$this->showCustomIntro() && !$this->mTitle->exists() ) { |
|