reverting myself (r63361) due to comment #2 in bug 22756. Feature not needed
authorTobias <churchofemacs@users.mediawiki.org>
Sun, 7 Mar 2010 18:29:22 +0000 (18:29 +0000)
committerTobias <churchofemacs@users.mediawiki.org>
Sun, 7 Mar 2010 18:29:22 +0000 (18:29 +0000)
RELEASE-NOTES
includes/Article.php
includes/EditPage.php
languages/messages/MessagesQqq.php

index b1422d4..2b1ea8a 100644 (file)
@@ -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:<name>/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
index d405cca..78d7485 100644 (file)
@@ -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 = "<div class='noarticletext'>\n$text\n</div>";
                if ( !$this->hasViewableContent() ) {
index 539badb..d25e0f2 100644 (file)
@@ -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( "<div class=\"mw-newarticletext\">\n$1</div>", array( 'newarticletext', $isCurrent ) );
+                               $wgOut->wrapWikiMsg( "<div class=\"mw-newarticletext\">\n$1</div>", 'newarticletext' );
                        } else {
-                               $wgOut->wrapWikiMsg( "<div class=\"mw-newarticletextanon\">\n$1</div>", array( 'newarticletext', $isCurrent ) );
+                               $wgOut->wrapWikiMsg( "<div class=\"mw-newarticletextanon\">\n$1</div>", 'newarticletextanon' );
                        }
                }
                # Give a notice if the user is editing a deleted/moved page...
index 0bbdd4d..bb563cf 100644 (file)
@@ -795,17 +795,11 @@ Parameters:
 
 {{doc-important|Do not translate \"<nowiki>[[User talk:\$1|\$1]]</nowiki>\" and ''Special:ChangePassword''.}}",
 'newarticle'                       => '{{Identical|New}}',
-'newarticletext'                   => "Text displayed above the edit box in editor when trying to create a new page.<br />'''Very important:''' leave <tt><nowiki>{{MediaWiki:Helppage}}</nowiki></tt> 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.<br />'''Very important:''' leave <tt><nowiki>{{MediaWiki:Helppage}}</nowiki></tt> 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',