Add warning for anon. edits
authorRob Church <robchurch@users.mediawiki.org>
Sat, 4 Feb 2006 18:42:43 +0000 (18:42 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 4 Feb 2006 18:42:43 +0000 (18:42 +0000)
RELEASE-NOTES
includes/EditPage.php
languages/Messages.php

index a2cc539..80572cd 100644 (file)
@@ -592,7 +592,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * (bug 4303) Add $wgFavicon to change the shorticon icon link from
   the default /favicon.ico or disable it (if set to false)
 * (bug 3347) strip linebreaks in math error source
-
+* (bug 4841) Warning for non-logged-in edits
 
 === Caveats ===
 
index 3fcc54c..d5c4095 100644 (file)
@@ -722,7 +722,10 @@ class EditPage {
                        $wgOut->addWikiText( wfMsg( 'readonlywarning' ) );
                } else if ( $this->isCssJsSubpage and 'preview' != $this->formtype) {
                        $wgOut->addWikiText( wfMsg( 'usercssjsyoucanpreview' ));
+               } else if( $wgUser->isAnon() && $this->formtype != 'preview' ) {
+                       $wgOut->addWikiText( wfMsg( 'anoneditwarning' ) );
                }
+               
                if( $this->mTitle->isProtected('edit') ) {
                        $wgOut->addWikiText( wfMsg( 'protectedpagewarning' ) );
                }
index 5733cfd..69c9004 100644 (file)
@@ -450,6 +450,7 @@ format. Please enter a well-formatted address or empty that field.',
 'preview'              => 'Preview',
 'showpreview'  => 'Show preview',
 'showdiff'     => 'Show changes',
+'anoneditwarning' => 'You are not logged in. Your IP address will be recorded in this page\'s edit history.',
 'blockedtitle' => 'User is blocked',
 'blockedtext'  => 'Your user name or IP address has been blocked by $1.
 The reason given is this:<br />\'\'$2\'\'<p>You may contact $1 or one of the other