r110095 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110094‎ | r110095 | r110096 >
Date:23:39, 26 January 2012
Author:reedy
Status:ok
Tags:
Comment:
HtmlForm doesn't have contexty stuff in 1.18wmf1
Modified paths:
  • /branches/wmf/1.18wmf1/includes/specials/SpecialBlockList.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/specials/SpecialBlockList.php
@@ -429,10 +429,11 @@
430430
431431 // Let folks pick an explicit limit not from our list, as long as it's a real numbr.
432432 if ( !in_array( $value, $this->mParams['options'] ) && $value == intval( $value ) && $value > 0 ) {
 433+ global $wgLang;
433434 // This adds the explicitly requested limit value to the drop-down,
434435 // then makes sure it's sorted correctly so when we output the list
435436 // 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);
437438 asort( $this->mParams['options'] );
438439 }
439440

Status & tagging log