aboutsummaryrefslogtreecommitdiffstats
path: root/includes/preferences
diff options
context:
space:
mode:
Diffstat (limited to 'includes/preferences')
-rw-r--r--includes/preferences/DefaultPreferencesFactory.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/includes/preferences/DefaultPreferencesFactory.php b/includes/preferences/DefaultPreferencesFactory.php
index ec64f6590fa4..7a7e87404842 100644
--- a/includes/preferences/DefaultPreferencesFactory.php
+++ b/includes/preferences/DefaultPreferencesFactory.php
@@ -1400,7 +1400,6 @@ class DefaultPreferencesFactory implements PreferencesFactory {
$watchTypes = [
'edit' => 'watchdefault',
'move' => 'watchmoves',
- 'delete' => 'watchdeletion'
];
// Kinda hacky
@@ -1408,13 +1407,12 @@ class DefaultPreferencesFactory implements PreferencesFactory {
$watchTypes['read'] = 'watchcreations';
}
- if ( $user->isAllowed( 'rollback' ) ) {
- $watchTypes['rollback'] = 'watchrollback';
- }
-
- if ( $user->isAllowed( 'upload' ) ) {
- $watchTypes['upload'] = 'watchuploads';
- }
+ // Move uncommon actions to end of list
+ $watchTypes += [
+ 'rollback' => 'watchrollback',
+ 'upload' => 'watchuploads',
+ 'delete' => 'watchdeletion',
+ ];
foreach ( $watchTypes as $action => $pref ) {
if ( $user->isAllowed( $action ) ) {