Index: trunk/phase3/includes/specials/SpecialBlockList.php |
— | — | @@ -468,7 +468,11 @@ |
469 | 469 | return true; |
470 | 470 | } |
471 | 471 | |
472 | | - if ( !in_array( $value, $this->mParams['options'] ) ) { |
| 472 | + // Let folks pick an explicit limit not from our list, as long as it's a real numbr. |
| 473 | + if ( !in_array( $value, $this->mParams['options'] ) && $value == intval( $value ) && $value > 0 ) { |
| 474 | + // This adds the explicitly requested limit value to the drop-down, |
| 475 | + // then makes sure it's sorted correctly so when we output the list |
| 476 | + // later, the custom option doesn't just show up last. |
473 | 477 | $this->mParams['options'][ $this->mParent->getLanguage()->formatNum( $value ) ] = intval($value); |
474 | 478 | asort( $this->mParams['options'] ); |
475 | 479 | } |