r2620 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2619‎ | r2620 | r2621 >
Date:21:44, 5 March 2004
Author:e23
Status:old
Tags:
Comment:
Added language string 'talkpagetext' before talk page edit box
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -95,9 +95,12 @@
9696 $wpTextbox1 = rtrim ( $wpTextbox1 ) ; # To avoid text getting longer on each preview
9797
9898 if(!$this->mTitle->getArticleID()) { # new article
99 -
10099 $wgOut->addWikiText(wfmsg("newarticletext"));
 100+ }
101101
 102+ $talknamespaces = array( NS_TALK, NS_WP_TALK, NS_IMAGE_TALK, NS_MEDIAWIKI_TALK );
 103+ if( in_array( $this->mTitle->getNamespace(), $talknamespaces ) ) {
 104+ $wgOut->addWikiText(wfmsg("talkpagetext"));
102105 }
103106
104107 # Attempt submission here. This will check for edit conflicts,
Index: trunk/phase3/languages/Language.php
@@ -702,6 +702,7 @@
703703 To create the page, start typing in the box below
704704 (see the [[$wgMetaNamespace:Help|help page]] for more info).
705705 If you are here by mistake, just click your browser's '''back''' button.",
 706+"talkpagetext" => "<!-- MediaWiki:talkpagetext -->",
706707 "anontalkpagetext" => "---- ''This is the discussion page for an anonymous user who has not created an account yet or who does not use it. We therefore have to use the numerical [[IP address]] to identify him/her. Such an IP address can be shared by several users. If you are an anonymous user and feel that irrelevant comments have been directed at you, please [[Special:Userlogin|create an account or log in]] to avoid future confusion with other anonymous users.'' ",
707708 "noarticletext" => "(There is currently no text in this page)",
708709 "updated" => "(Updated)",

Status & tagging log