https://bugzilla.wikimedia.org/show_bug.cgi?id=21411
Summary: Add a new message rev-suppressed-no-diff for diff
without entry in public log
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: easy, patch
Severity: enhancement
Priority: Normal
Component: History/Diffs
AssignedTo: [email protected]
ReportedBy: [email protected]
If a revision is deleted the diff always shows rev-deleted-no-diff for "normal"
users which contains a link to Special:Log/delete. But if one revision is
suppressed the log doesn't contains any information. So it would by nice to
have a new message rev-suppressed-no-diff which doens't conatins a link to the
deletion log.
Nessessary Code Changes in diff/DifferenceInterface.php:
-$wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n",
- array( 'rev-deleted-no-diff' ) );
+$msg = $suppressed ? 'rev-suppressed-no-diff' : 'rev-deleted-no-diff';
+$wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", array(
$msg) );
System Message Changes:
rev-deleted-no-diff:
-You cannot view this diff because one of the revisions has been '''deleted'''.
-There may be details in the
[{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} deletion log].
+You cannot view this diff because one of the revisions has been '''deleted'''.
+Details can be found in the
[{{fullurl:{{#Special:Log}}/delete|page={{FULLPAGENAMEE}}}} deletion log].
rev-suppressed-no-diff:
+You cannot view this diff because one of the revisions has been '''removed
from the public archives'''.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l