Separate newarticletext messages for logged in and anon users
authorTom Gilder <tomgilder@users.mediawiki.org>
Thu, 6 Oct 2005 01:07:25 +0000 (01:07 +0000)
committerTom Gilder <tomgilder@users.mediawiki.org>
Thu, 6 Oct 2005 01:07:25 +0000 (01:07 +0000)
RELEASE-NOTES
includes/EditPage.php
languages/Language.php

index d1b4457..e273039 100644 (file)
@@ -128,7 +128,7 @@ fully support the editing toolbar, but was found to be too confusing.
   dumpBackup.php
 * (bug 3595) Warn and abort if importDump.php called in read-only mode.
 * (bug 3598) Update message cache on message page deletion, patch by Tietew
-
+* Added separate newarticletext messages for logged in and anon users.
 
 === Caveats ===
 
index a18b06a..4590d43 100644 (file)
@@ -385,7 +385,7 @@ class EditPage {
        }
 
        function showIntro() {
-               global $wgOut;
+               global $wgOut, $wgUser;
                $addstandardintro=true;
                if($this->editintro) {
                        $introtitle=Title::newFromText($this->editintro);
@@ -398,7 +398,10 @@ class EditPage {
                        }
                }
                if($addstandardintro) {
-                       $wgOut->addWikiText( wfMsg( 'newarticletext' ) );                               
+                       if ( $wgUser->getID() ) 
+                               $wgOut->addWikiText( wfMsg( 'newarticletext' ) );
+                       else
+                               $wgOut->addWikiText( wfMsg( 'newarticletextanon' ) );
                }
        }
 
index ee3b63e..fc927fe 100644 (file)
@@ -703,6 +703,11 @@ 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 [[Project:Help|help page]] for more info).
 If you are here by mistake, just click your browser's '''back''' button.",
+'newarticletextanon' =>
+"You've followed a link to a page that doesn't exist yet.
+To create the page, start typing in the box below
+(see the [[Project: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)',