http://www.mediawiki.org/wiki/Special:Code/MediaWiki/64367
Revision: 64367
Author: platonides
Date: 2010-03-29 22:44:59 +0000 (Mon, 29 Mar 2010)
Log Message:
-----------
(bug 21520) Anonymous previews now also give a warning about not being
logged in (anonpreviewwarning).
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES
trunk/phase3/includes/EditPage.php
trunk/phase3/languages/messages/MessagesEn.php
Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES 2010-03-29 22:27:59 UTC (rev 64366)
+++ trunk/phase3/RELEASE-NOTES 2010-03-29 22:44:59 UTC (rev 64367)
@@ -67,6 +67,8 @@
* (bug 22991) wgUserGroups JavaScript variable now reports * group for
anonymous users instead of null.
* (bug 22627) Remove PHP notice when deleting a page only hidden users edited.
+* (bug 21520) Anonymous previews now also gives a warning about not being
+logged in (anonpreviewwarning).
== API changes in 1.17 ==
* (bug 22738) Allow filtering by action type on query=logevent
Modified: trunk/phase3/includes/EditPage.php
===================================================================
--- trunk/phase3/includes/EditPage.php 2010-03-29 22:27:59 UTC (rev 64366)
+++ trunk/phase3/includes/EditPage.php 2010-03-29 22:44:59 UTC (rev 64367)
@@ -1401,8 +1401,12 @@
if ( wfReadOnly() ) {
$wgOut->wrapWikiMsg( "<div
id=\"mw-read-only-warning\">\n$1\n</div>", array( 'readonlywarning',
wfReadOnlyReason() ) );
- } elseif ( $wgUser->isAnon() && $this->formtype != 'preview' ) {
- $wgOut->wrapWikiMsg( "<div
id=\"mw-anon-edit-warning\">\n$1</div>", 'anoneditwarning' );
+ } elseif ( $wgUser->isAnon() ) {
+ if ( $this->formtype != 'preview' ) {
+ $wgOut->wrapWikiMsg( "<div
id=\"mw-anon-edit-warning\">\n$1</div>", 'anoneditwarning' );
+ } else {
+ $wgOut->wrapWikiMsg( "<div
id=\"mw-anon-preview-warning\">\n$1</div>", 'anonpreviewwarning' );
+ }
} else {
if ( $this->isCssJsSubpage ) {
# Check the skin exists
Modified: trunk/phase3/languages/messages/MessagesEn.php
===================================================================
--- trunk/phase3/languages/messages/MessagesEn.php 2010-03-29 22:27:59 UTC
(rev 64366)
+++ trunk/phase3/languages/messages/MessagesEn.php 2010-03-29 22:44:59 UTC
(rev 64367)
@@ -1,3 +1,4 @@
+
<?php
/**
* This is the default English localisation file
@@ -1190,6 +1191,7 @@
'showdiff' => 'Show changes',
'anoneditwarning' => "'''Warning:''' You are not logged in.
Your IP address will be recorded in this page's edit history.",
+'anonpreviewwarning' => "''You are not logged in. Saving will
record your IP address in this page's edit history.''",
'missingsummary' => "'''Reminder:''' You have not provided
an edit summary.
If you click Save again, your edit will be saved without one.",
'missingcommenttext' => 'Please enter a comment below.',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs