| Index: branches/REL1_18/phase3/includes/AutoLoader.php |
| — | — | @@ -709,6 +709,7 @@ |
| 710 | 710 | 'EmailInvalidation' => 'includes/specials/SpecialConfirmemail.php', |
| 711 | 711 | 'FewestrevisionsPage' => 'includes/specials/SpecialFewestrevisions.php', |
| 712 | 712 | 'FileDuplicateSearchPage' => 'includes/specials/SpecialFileDuplicateSearch.php', |
| | 713 | + 'HTMLBlockedUsersItemSelect' => 'includes/specials/SpecialBlockList.php', |
| 713 | 714 | 'ImportReporter' => 'includes/specials/SpecialImport.php', |
| 714 | 715 | 'IPBlockForm' => 'includes/specials/SpecialBlock.php', |
| 715 | 716 | 'LinkSearchPage' => 'includes/specials/SpecialLinkSearch.php', |
| Property changes on: branches/REL1_18/phase3/includes/AutoLoader.php |
| ___________________________________________________________________ |
| Modified: svn:mergeinfo |
| 716 | 717 | Merged /trunk/phase3/includes/AutoLoader.php:r104322,104350 |
| 717 | 718 | Merged /branches/wmf/1.18wmf1/includes/AutoLoader.php:r104486 |
| Index: branches/REL1_18/phase3/includes/specials/SpecialBlockList.php |
| — | — | @@ -40,7 +40,7 @@ |
| 41 | 41 | * @param $par String title fragment |
| 42 | 42 | */ |
| 43 | 43 | public function execute( $par ) { |
| 44 | | - global $wgOut, $wgRequest; |
| | 44 | + global $wgOut, $wgRequest, $wgLang; |
| 45 | 45 | |
| 46 | 46 | $this->setHeaders(); |
| 47 | 47 | $this->outputHeader(); |
| — | — | @@ -78,6 +78,19 @@ |
| 79 | 79 | ), |
| 80 | 80 | 'flatlist' => true, |
| 81 | 81 | ), |
| | 82 | + 'Limit' => array( |
| | 83 | + 'class' => 'HTMLBlockedUsersItemSelect', |
| | 84 | + 'label-message' => 'table_pager_limit_label', |
| | 85 | + 'options' => array( |
| | 86 | + $wgLang->formatNum( 20 ) => 20, |
| | 87 | + $wgLang->formatNum( 50 ) => 50, |
| | 88 | + $wgLang->formatNum( 100 ) => 100, |
| | 89 | + $wgLang->formatNum( 250 ) => 250, |
| | 90 | + $wgLang->formatNum( 500 ) => 500, |
| | 91 | + ), |
| | 92 | + 'name' => 'limit', |
| | 93 | + 'default' => 50, |
| | 94 | + ), |
| 82 | 95 | ); |
| 83 | 96 | $form = new HTMLForm( $fields, $this->getContext() ); |
| 84 | 97 | $form->setMethod( 'get' ); |
| — | — | @@ -393,3 +406,32 @@ |
| 394 | 407 | return $this->page->getTitle(); |
| 395 | 408 | } |
| 396 | 409 | } |
| | 410 | + |
| | 411 | +/** |
| | 412 | + * Items per page dropdown. Essentially a crap workaround for bug 32603. |
| | 413 | + * |
| | 414 | + * @todo Do not release 1.19 with this. |
| | 415 | + */ |
| | 416 | +class HTMLBlockedUsersItemSelect extends HTMLSelectField { |
| | 417 | + /** |
| | 418 | + * Basically don't do any validation. If it's a number that's fine. Also, |
| | 419 | + * add it to the list if it's not there already |
| | 420 | + * |
| | 421 | + * @param $value |
| | 422 | + * @param $alldata |
| | 423 | + * @return bool |
| | 424 | + */ |
| | 425 | + function validate( $value, $alldata ) { |
| | 426 | + if ( $value == '' ) { |
| | 427 | + return true; |
| | 428 | + } |
| | 429 | + |
| | 430 | + if ( !in_array( $value, $this->mParams['options'] ) ) { |
| | 431 | + $this->mParams['options'][ $this->mParent->getLanguage()->formatNum( $value ) ] = intval($value); |
| | 432 | + asort( $this->mParams['options'] ); |
| | 433 | + } |
| | 434 | + |
| | 435 | + return true; |
| | 436 | + } |
| | 437 | + |
| | 438 | +} |
| Property changes on: branches/REL1_18/phase3/includes/specials |
| ___________________________________________________________________ |
| Modified: svn:mergeinfo |
| 397 | 439 | Merged /branches/wmf/1.18wmf1/includes/specials:r104486 |
| 398 | 440 | Merged /trunk/phase3/includes/specials:r104318,104322,104350 |
| Property changes on: branches/REL1_18/phase3/includes |
| ___________________________________________________________________ |
| Modified: svn:mergeinfo |
| 399 | 441 | Merged /branches/wmf/1.18wmf1/includes:r104486 |
| 400 | 442 | Merged /trunk/phase3/includes:r104318,104322,104350 |
| Property changes on: branches/REL1_18/phase3 |
| ___________________________________________________________________ |
| Modified: svn:mergeinfo |
| 401 | 443 | Merged /branches/wmf/1.18wmf1:r104486 |
| 402 | 444 | Merged /trunk/phase3:r104318,104322,104350 |