From: Tobias Date: Sun, 7 Mar 2010 18:29:22 +0000 (+0000) Subject: reverting myself (r63361) due to comment #2 in bug 22756. Feature not needed X-Git-Tag: 1.31.0-rc.0~37519 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=076ff58f10e18e0dc6781d4206f5bf1e854fe7e2;p=lhc%2Fweb%2Fwiklou.git reverting myself (r63361) due to comment #2 in bug 22756. Feature not needed --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b1422d409b..2b1ea8a0ce 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -26,8 +26,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 10183) Users can now add personal styles and scripts to all skins via User:/common.css and /common.js (if user css/js is enabled) * (bug 22748) Add anchors on Special:ListGroupRights -* (bug 22756) Adding a parameter to noarticletext/newarticletext which indicates - if it's the current user's user (talk) page ($1 is true in that case) === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive without diff --git a/includes/Article.php b/includes/Article.php index d405ccac52..78d7485ddf 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1253,23 +1253,14 @@ class Article { // Use the default message text $text = $this->getContent(); } else { - # If it is a user (talk) page of the current user, add true as parameter, otherwise false. - $isCurrent = false; - if ( ( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) - && $wgUser->getName() == $this->mTitle->getBaseText() ) - { - $isCurrent = true; - } - - # Don't show option "create this page" in the message if the user isn't allowed to. $createErrors = $this->mTitle->getUserPermissionsErrors( 'create', $wgUser ); $editErrors = $this->mTitle->getUserPermissionsErrors( 'edit', $wgUser ); $errors = array_merge( $createErrors, $editErrors ); if ( !count( $errors ) ) - $text = wfMsgNoTrans( 'noarticletext', $isCurrent ); + $text = wfMsgNoTrans( 'noarticletext' ); else - $text = wfMsgNoTrans( 'noarticletext-nopermission', $isCurrent ); + $text = wfMsgNoTrans( 'noarticletext-nopermission' ); } $text = "
\n$text\n
"; if ( !$this->hasViewableContent() ) { diff --git a/includes/EditPage.php b/includes/EditPage.php index 539badb7a5..d25e0f2d8b 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -722,19 +722,10 @@ class EditPage { } # Try to add a custom edit intro, or use the standard one if this is not possible. if ( !$this->showCustomIntro() && !$this->mTitle->exists() ) { - # If it is a user (talk) page of the current user, add true as parameter, otherwise false. - $isCurrent = false; - if ( ( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) - && $wgUser->getName() == $this->mTitle->getBaseText() ) - { - $isCurrent = true; - } - - # Show standard message if ( $wgUser->isLoggedIn() ) { - $wgOut->wrapWikiMsg( "
\n$1
", array( 'newarticletext', $isCurrent ) ); + $wgOut->wrapWikiMsg( "
\n$1
", 'newarticletext' ); } else { - $wgOut->wrapWikiMsg( "
\n$1
", array( 'newarticletext', $isCurrent ) ); + $wgOut->wrapWikiMsg( "
\n$1
", 'newarticletextanon' ); } } # Give a notice if the user is editing a deleted/moved page... diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index 0bbdd4dc26..bb563cf0c7 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -795,17 +795,11 @@ Parameters: {{doc-important|Do not translate \"[[User talk:\$1|\$1]]\" and ''Special:ChangePassword''.}}", 'newarticle' => '{{Identical|New}}', -'newarticletext' => "Text displayed above the edit box in editor when trying to create a new page.
'''Very important:''' leave {{MediaWiki:Helppage}} exactly as it is! -The following optional parameter should not be used in default localisations: -* $1 is true when the page is a user (talk) page of the current user, otherwise false.", +'newarticletext' => "Text displayed above the edit box in editor when trying to create a new page.
'''Very important:''' leave {{MediaWiki:Helppage}} exactly as it is!", 'noarticletext' => 'This is the message that you get if you search for a term that has not yet got any entries on the wiki. -See also {{msg-mw|Noarticletext-nopermission}}. -The following optional parameter should not be used in default localisations: -* $1 is true when the page is a user (talk) page of the current user, otherwise false.', -'noarticletext-nopermission' => 'See also {{msg-mw|Noarticletext}}. -The following optional parameter should not be used in default localisations: -* $1 is true when the page is a user (talk) page of the current user, otherwise false.', +See also {{msg-mw|Noarticletext-nopermission}}.', +'noarticletext-nopermission' => 'See also {{msg-mw|Noarticletext}}.', 'userpage-userdoesnotexist' => 'Error message displayed when trying to edit or create a page or a subpage that belongs to a user who is not registered on the wiki', 'userpage-userdoesnotexist-view' => 'Shown in user pages of non existing users. See for example [http://translatewiki.net/wiki/User:Foo User:Foo].', 'clearyourcache' => 'Text at the top of .js/.css pages',