Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -29,6 +29,11 @@ |
30 | 30 | static $defaultPreferences = null; |
31 | 31 | static $saveFilters = array( |
32 | 32 | 'timecorrection' => array( 'Preferences', 'filterTimezoneInput' ), |
| 33 | + 'cols' => array( 'Preferences', 'filterIntval' ), |
| 34 | + 'rows' => array( 'Preferences', 'filterIntval' ), |
| 35 | + 'rclimit' => array( 'Preferences', 'filterIntval' ), |
| 36 | + 'wllimit' => array( 'Preferences', 'filterIntval' ), |
| 37 | + 'searchlimit' => array( 'Preferences', 'filterIntval' ), |
33 | 38 | ); |
34 | 39 | |
35 | 40 | static function getPreferences( $user ) { |
— | — | @@ -1214,6 +1219,10 @@ |
1215 | 1220 | } |
1216 | 1221 | return $opt; |
1217 | 1222 | } |
| 1223 | + |
| 1224 | + static function filterIntval( $value, $alldata ){ |
| 1225 | + return intval( $value ); |
| 1226 | + } |
1218 | 1227 | |
1219 | 1228 | static function filterTimezoneInput( $tz, $alldata ) { |
1220 | 1229 | $data = explode( '|', $tz, 3 ); |