From: Alexandre Emsenhuber Date: Sat, 10 Oct 2009 09:29:44 +0000 (+0000) Subject: * (bug 21073) "User does not exist" message no longer displayed on sub-sub-pages... X-Git-Tag: 1.31.0-rc.0~39315 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=a7433fc929655d8d920157c21a7bbbba0141ef89;p=lhc%2Fweb%2Fwiklou.git * (bug 21073) "User does not exist" message no longer displayed on sub-sub-pages of existing users --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5de904c2fd..da4ce72d7c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -243,6 +243,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 19741) Moved the XCF files out of the main MediaWiki distribution, for a smaller subversion checkout. * (bug 13750) First letter capitalization can now be a per-namespace setting +* (bug 21073) "User does not exist" message no longer displayed on sub-sub-pages + of existing users === Bug fixes in 1.16 === diff --git a/includes/Article.php b/includes/Article.php index f33dc9dee8..6d43612cfc 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1209,11 +1209,13 @@ class Article { # Show info in user (talk) namespace. Does the user exist? if ( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) { - $id = User::idFromName( $this->mTitle->getBaseText() ); - $ip = User::isIP( $this->mTitle->getBaseText() ); + $parts = explode( '/', $this->mTitle->getText() ); + $rootPart = $parts[0]; + $id = User::idFromName( $rootPart ); + $ip = User::isIP( $rootPart ); if ( $id == 0 && !$ip ) { # User does not exist $wgOut->wrapWikiMsg( '
$1
', - array( 'userpage-userdoesnotexist-view', $this->mTitle->getBaseText() ) ); + array( 'userpage-userdoesnotexist-view', $rootPart ) ); } } wfRunHooks( 'ShowMissingArticle', array( $this ) );