Page MenuHomePhabricator

newtalk.diff

Authored By
bzimport
Nov 21 2014, 7:02 PM
Size
2 KB
Referenced Files
None
Subscribers
None

newtalk.diff

Only in mediawiki-1.3.8: LocalSettings.php
diff -ur mediawiki-1.3.8_orig/includes/EditPage.php mediawiki-1.3.8/includes/EditPage.php
--- mediawiki-1.3.8_orig/includes/EditPage.php 2004-10-30 05:18:19.000000000 -0600
+++ mediawiki-1.3.8/includes/EditPage.php 2004-11-26 21:54:31.000000000 -0600
@@ -116,7 +116,11 @@
$isCssJsSubpage = (Namespace::getUser() == $wgTitle->getNamespace() and preg_match("/\\.(css|js)$/", $wgTitle->getText() ));
if(!$this->mTitle->getArticleID()) { # new article
- $wgOut->addWikiText(wfmsg("newarticletext"));
+ if( Namespace::isTalk( $this->mTitle->getNamespace() )) {
+ $wgOut->addWikiText(wfmsg("newtalktext"));
+ } else {
+ $wgOut->addWikiText(wfmsg("newarticletext"));
+ }
}
if( Namespace::isTalk( $this->mTitle->getNamespace() ) ) {
diff -ur mediawiki-1.3.8_orig/languages/Language.php mediawiki-1.3.8/languages/Language.php
--- mediawiki-1.3.8_orig/languages/Language.php 2004-11-06 18:27:45.000000000 -0600
+++ mediawiki-1.3.8/languages/Language.php 2004-11-26 21:37:37.000000000 -0600
@@ -542,6 +542,11 @@
To create the page, start typing in the box below
(see the [[{{ns:4}}:Help|help page]] for more info).
If you are here by mistake, just click your browser's '''back''' button.",
+'newtalktext' =>
+"You've followed a link to a talk page that doesn't exist yet.
+To comment on the article, start typing in the box below
+(see the [[{{ns:4}}:Help|help page]] for more info).
+If you are here by mistake, just click your browser's '''back''' button.",
'talkpagetext' => '<!-- MediaWiki: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)',

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1263
Default Alt Text
newtalk.diff (2 KB)

Event Timeline