From: MGChecker Date: Sat, 2 Apr 2016 21:15:31 +0000 (+0200) Subject: Add possibility to filter for log_action in all core logs X-Git-Tag: 1.31.0-rc.0~7342^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=3b6a74b435d9668cb1b6f9c47900a466d8e73fb6;p=lhc%2Fweb%2Fwiklou.git Add possibility to filter for log_action in all core logs Adds possibility to filter all core logs with multiple log_actions, Log actions newusers and create for the newusers log are treated as one, because newusers is the predecessor of create and they describe the same actions. Bug: T16334 Bug: T109267 Change-Id: I04a0ef1a6b4ea90c517a11045b6bd73c26b96863 --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 65032ad6e9..8fa7c551f5 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -7240,12 +7240,36 @@ $wgActionFilteredLogs = [ 'reblock' => [ 'reblock' ], 'unblock' => [ 'unblock' ], ], + 'contentmodel' => [ + 'change' => [ 'change' ], + 'new' => [ 'new' ], + ], 'delete' => [ 'delete' => [ 'delete' ], 'restore' => [ 'restore' ], 'event' => [ 'event' ], 'revision' => [ 'revision' ], ], + 'import' => [ + 'interwiki' => [ 'interwiki' ], + 'upload' => [ 'upload' ], + ], + 'managetags' => [ + 'create' => [ 'create' ], + 'delete' => [ 'delete' ], + 'activate' => [ 'activate' ], + 'deactivate' => [ 'deactivate' ], + ], + 'move' => [ + 'move' => [ 'move' ], + 'move_redir' => [ 'move_redir' ], + ], + 'newusers' => [ + 'create' => [ 'create', 'newusers' ], + 'create2' => ['create2' ], + 'autocreate' => [ 'autocreate' ], + 'byemail' => [ 'byemail' ], + ], 'patrol' => [ 'patrol' => [ 'patrol' ], 'autopatrol' => [ 'autopatrol' ], @@ -7254,6 +7278,18 @@ $wgActionFilteredLogs = [ 'protect' => [ 'protect' ], 'modify' => [ 'modify' ], 'unprotect' => [ 'unprotect' ], + 'move_prot' => ['move_prot'], + ], + 'rights' => [ + 'rights' => [ 'rights' ], + 'autopromote' => [ 'autopromote' ], + ], + 'suppress' => [ + 'event' => [ 'event' ], + 'revision' => [ 'revision' ], + 'delete' => [ 'delete' ], + 'block' => [ 'block' ], + 'reblock' => [ 'reblock' ], ], 'upload' => [ 'upload' => [ 'upload' ], diff --git a/languages/i18n/en.json b/languages/i18n/en.json index fe307d4bdc..f5900a585f 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -4025,23 +4025,52 @@ "sessionprovider-nocookies": "Cookies may be disabled. Ensure you have cookies enabled and start again.", "randomrootpage": "Random root page", "log-action-filter-block": "Type of block:", + "log-action-filter-contentmodel": "Type of contentmodel modification:", "log-action-filter-delete": "Type of deletion:", + "log-action-filter-import": "Type of import:", + "log-action-filter-managetags": "Type of tag management action:", + "log-action-filter-move": "Type of move:", + "log-action-filter-newusers": "Type of account creation:", "log-action-filter-patrol": "Type of patrol:", "log-action-filter-protect": "Type of protection:", + "log-action-filter-rights": "Type of right change", + "log-action-filter-suppress": "Type of suppression", "log-action-filter-upload": "Type of upload:", "log-action-filter-all": "All", "log-action-filter-block-block": "Block", "log-action-filter-block-reblock": "Block modification", "log-action-filter-block-unblock": "Unblock", + "log-action-filter-contentmodel-change": "Change of Contentmodel", + "log-action-filter-contentmodel-new": "Creation of page with non-standard Contentmodel", "log-action-filter-delete-delete": "Page deletion", "log-action-filter-delete-restore": "Page undeletion", "log-action-filter-delete-event": "Log deletion", "log-action-filter-delete-revision": "Revision deletion", + "log-action-filter-import-interwiki": "Transwiki import", + "log-action-filter-import-upload": "Import by XML upload", + "log-action-filter-managetags-create": "Tag creation", + "log-action-filter-managetags-delete": "Tag deletion", + "log-action-filter-managetags-activate": "Tag activation", + "log-action-filter-managetags-deactivate": "Tag deactivation", + "log-action-filter-move-move": "Move without overwriting of redirects", + "log-action-filter-move-move_redir": "Move with overwriting of redirects", + "log-action-filter-newusers-create": "Creation by anonymous user", + "log-action-filter-newusers-create2": "Creation by registered user", + "log-action-filter-newusers-autocreate": "Automatic creation", + "log-action-filter-newusers-byemail": "Creation with password sent by e-mail", "log-action-filter-patrol-patrol": "Manual patrol", "log-action-filter-patrol-autopatrol": "Automatic patrol", "log-action-filter-protect-protect": "Protection", "log-action-filter-protect-modify": "Protection modification", "log-action-filter-protect-unprotect": "Unprotection", + "log-action-filter-protect-move_prot": "Moved protection", + "log-action-filter-rights-rights": "Manual change", + "log-action-filter-rights-autopromote": "Automatic change", + "log-action-filter-suppress-event": "Log suppression", + "log-action-filter-suppress-revision": "Revision suppression", + "log-action-filter-suppress-delete": "Page suppression", + "log-action-filter-suppress-block": "User supppression by block", + "log-action-filter-suppress-reblock": "User suppression by reblock", "log-action-filter-upload-upload": "New upload", "log-action-filter-upload-overwrite": "Reupload" } diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 2ee34bdea5..9e1d8943c1 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -4201,23 +4201,52 @@ "sessionprovider-nocookies": "Used to inform the user that sessions may be missing due to lack of cookies.", "randomrootpage": "{{doc-special|RandomRootPage}}", "log-action-filter-block": "Which type of action to filter for in this log", + "log-action-filter-contentmodel": "Which type of action to filter for in this log", "log-action-filter-delete": "Which type of action to filter for in this log", + "log-action-filter-import": "Which type of action to filter for in this log", + "log-action-filter-managetags": "Which type of action to filter for in this log", + "log-action-filter-move": "Which type of action to filter for in this log", + "log-action-filter-newusers": "Which type of action to filter for in this log", "log-action-filter-patrol": "Which type of action to filter for in this log", "log-action-filter-protect": "Which type of action to filter for in this log", + "log-action-filter-rights": "Which type of action to filter for in this log", + "log-action-filter-suppress": "Which type of action to filter for in this log", "log-action-filter-upload": "Which type of action to filter for in this log", "log-action-filter-all": "All types of action are allowed\n{{Identical|All}}", "log-action-filter-block-block": "Action to filter for in this log\n{{Identical|Block}}", "log-action-filter-block-reblock": "Action to filter for in this log", "log-action-filter-block-unblock": "Action to filter for in this log\n{{Identical|Unblock}}", + "log-action-filter-contentmodel-change": "Action to filter for in this log", + "log-action-filter-contentmodel-new": "Action to filter for in this log", "log-action-filter-delete-delete": "Action to filter for in this log", "log-action-filter-delete-restore": "Action to filter for in this log", "log-action-filter-delete-event": "Action to filter for in this log", "log-action-filter-delete-revision": "Action to filter for in this log", + "log-action-filter-import-interwiki": "Action to filter for in this log", + "log-action-filter-import-upload": "Action to filter for in this log", + "log-action-filter-managetags-create": "Action to filter for in this log", + "log-action-filter-managetags-delete": "Action to filter for in this log", + "log-action-filter-managetags-activate": "Action to filter for in this log", + "log-action-filter-managetags-deactivate": "Action to filter for in this log", + "log-action-filter-move-move": "Action to filter for in this log", + "log-action-filter-move-move_redir": "Action to filter for in this log", + "log-action-filter-newusers-create": "Action to filter for in this log", + "log-action-filter-newusers-create2": "Action to filter for in this log", + "log-action-filter-newusers-autocreate": "Action to filter for in this log", + "log-action-filter-newusers-byemail": "Action to filter for in this log", "log-action-filter-patrol-patrol": "Action to filter for in this log", "log-action-filter-patrol-autopatrol": "Action to filter for in this log", "log-action-filter-protect-protect": "Action to filter for in this log", "log-action-filter-protect-modify": "Action to filter for in this log", "log-action-filter-protect-unprotect": "Action to filter for in this log", + "log-action-filter-protect-move_prot": "Action to filter for in this log", + "log-action-filter-rights-rights": "Action to filter for in this log", + "log-action-filter-rights-autopromote": "Action to filter for in this log", + "log-action-filter-suppress-event": "Action to filter for in this log", + "log-action-filter-suppress-revision": "Action to filter for in this log", + "log-action-filter-suppress-delete": "Action to filter for in this log", + "log-action-filter-suppress-block": "Action to filter for in this log", + "log-action-filter-suppress-reblock": "Action to filter for in this log", "log-action-filter-upload-upload": "Action to filter for in this log", "log-action-filter-upload-overwrite": "Action to filter for in this log" }