https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110095

Revision: 110095
Author:   reedy
Date:     2012-01-26 23:39:07 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
HtmlForm doesn't have contexty stuff in 1.18wmf1

Modified Paths:
--------------
    branches/wmf/1.18wmf1/includes/specials/SpecialBlockList.php

Modified: branches/wmf/1.18wmf1/includes/specials/SpecialBlockList.php
===================================================================
--- branches/wmf/1.18wmf1/includes/specials/SpecialBlockList.php        
2012-01-26 23:26:22 UTC (rev 110094)
+++ branches/wmf/1.18wmf1/includes/specials/SpecialBlockList.php        
2012-01-26 23:39:07 UTC (rev 110095)
@@ -429,10 +429,11 @@
 
                // Let folks pick an explicit limit not from our list, as long 
as it's a real numbr.
                if ( !in_array( $value, $this->mParams['options'] ) && $value 
== intval( $value ) && $value > 0 ) {
+                       global $wgLang;
                        // This adds the explicitly requested limit value to 
the drop-down,
                        // then makes sure it's sorted correctly so when we 
output the list
                        // later, the custom option doesn't just show up last.
-                       $this->mParams['options'][ 
$this->mParent->getLanguage()->formatNum( $value ) ] = intval($value);
+                       $this->mParams['options'][ $wgLang->formatNum( $value ) 
] = intval($value);
                        asort( $this->mParams['options'] );
                }
 


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to