From 5da57c18f9df3e9b9746d9698970e1fa1deef1dc Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Fri, 5 Mar 2004 21:44:38 +0000 Subject: [PATCH] Added language string 'talkpagetext' before talk page edit box --- includes/EditPage.php | 5 ++++- languages/Language.php | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index cbee67cd9c..288cb256a5 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -95,9 +95,12 @@ class EditPage { $wpTextbox1 = rtrim ( $wpTextbox1 ) ; # To avoid text getting longer on each preview if(!$this->mTitle->getArticleID()) { # new article - $wgOut->addWikiText(wfmsg("newarticletext")); + } + $talknamespaces = array( NS_TALK, NS_WP_TALK, NS_IMAGE_TALK, NS_MEDIAWIKI_TALK ); + if( in_array( $this->mTitle->getNamespace(), $talknamespaces ) ) { + $wgOut->addWikiText(wfmsg("talkpagetext")); } # Attempt submission here. This will check for edit conflicts, diff --git a/languages/Language.php b/languages/Language.php index 5b1d874b71..46211f3e21 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -702,6 +702,7 @@ Your IP address is $3. Please include this address in any queries you make. To create the page, start typing in the box below (see the [[$wgMetaNamespace:Help|help page]] for more info). If you are here by mistake, just click your browser's '''back''' button.", +"talkpagetext" => "", "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.'' ", "noarticletext" => "(There is currently no text in this page)", "updated" => "(Updated)", -- 2.20.1