Index: trunk/phase3/includes/Article.php |
— | — | @@ -1209,11 +1209,13 @@ |
1210 | 1210 | |
1211 | 1211 | # Show info in user (talk) namespace. Does the user exist? |
1212 | 1212 | if ( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) { |
1213 | | - $id = User::idFromName( $this->mTitle->getBaseText() ); |
1214 | | - $ip = User::isIP( $this->mTitle->getBaseText() ); |
| 1213 | + $parts = explode( '/', $this->mTitle->getText() ); |
| 1214 | + $rootPart = $parts[0]; |
| 1215 | + $id = User::idFromName( $rootPart ); |
| 1216 | + $ip = User::isIP( $rootPart ); |
1215 | 1217 | if ( $id == 0 && !$ip ) { # User does not exist |
1216 | 1218 | $wgOut->wrapWikiMsg( '<div class="mw-userpage-userdoesnotexist error">$1</div>', |
1217 | | - array( 'userpage-userdoesnotexist-view', $this->mTitle->getBaseText() ) ); |
| 1219 | + array( 'userpage-userdoesnotexist-view', $rootPart ) ); |
1218 | 1220 | } |
1219 | 1221 | } |
1220 | 1222 | wfRunHooks( 'ShowMissingArticle', array( $this ) ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -243,6 +243,8 @@ |
244 | 244 | * (bug 19741) Moved the XCF files out of the main MediaWiki distribution, for |
245 | 245 | a smaller subversion checkout. |
246 | 246 | * (bug 13750) First letter capitalization can now be a per-namespace setting |
| 247 | +* (bug 21073) "User does not exist" message no longer displayed on sub-sub-pages |
| 248 | + of existing users |
247 | 249 | |
248 | 250 | === Bug fixes in 1.16 === |
249 | 251 | |