Index: branches/wmf/1.18wmf1/includes/specials/SpecialBlockList.php |
— | — | @@ -429,10 +429,11 @@ |
430 | 430 | |
431 | 431 | // Let folks pick an explicit limit not from our list, as long as it's a real numbr. |
432 | 432 | if ( !in_array( $value, $this->mParams['options'] ) && $value == intval( $value ) && $value > 0 ) { |
| 433 | + global $wgLang; |
433 | 434 | // This adds the explicitly requested limit value to the drop-down, |
434 | 435 | // then makes sure it's sorted correctly so when we output the list |
435 | 436 | // later, the custom option doesn't just show up last. |
436 | | - $this->mParams['options'][ $this->mParent->getLanguage()->formatNum( $value ) ] = intval($value); |
| 437 | + $this->mParams['options'][ $wgLang->formatNum( $value ) ] = intval($value); |
437 | 438 | asort( $this->mParams['options'] ); |
438 | 439 | } |
439 | 440 | |