Set a min and max on the rclimit preference
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 4 Aug 2017 23:44:49 +0000 (16:44 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Fri, 4 Aug 2017 23:45:21 +0000 (16:45 -0700)
The same values as wllimit.

Change-Id: I1fbc063455799f7d886d26c7030662f431feb627

includes/Preferences.php

index de6d681..15ed2d4 100644 (file)
@@ -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',