From c2d427d370e22160a78c5052a2a39d7f51519af5 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 4 Aug 2017 16:44:49 -0700 Subject: [PATCH] Set a min and max on the rclimit preference The same values as wllimit. Change-Id: I1fbc063455799f7d886d26c7030662f431feb627 --- includes/Preferences.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/Preferences.php b/includes/Preferences.php index de6d6813d7..15ed2d4424 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -901,6 +901,8 @@ class Preferences { ]; $defaultPreferences['rclimit'] = [ 'type' => 'int', + 'min' => 0, + 'max' => 1000, 'label-message' => 'recentchangescount', 'help-message' => 'prefs-help-recentchangescount', 'section' => 'rc/displayrc', -- 2.20.1