http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96820

Revision: 96820
Author:   jeroendedauw
Date:     2011-09-12 00:08:26 +0000 (Mon, 12 Sep 2011)
Log Message:
-----------
Follow up to r96819; 

Modified Paths:
--------------
    trunk/extensions/Survey/specials/SpecialSurvey.php

Modified: trunk/extensions/Survey/specials/SpecialSurvey.php
===================================================================
--- trunk/extensions/Survey/specials/SpecialSurvey.php  2011-09-11 23:57:47 UTC 
(rev 96819)
+++ trunk/extensions/Survey/specials/SpecialSurvey.php  2011-09-12 00:08:26 UTC 
(rev 96820)
@@ -233,6 +233,8 @@
                
                $nrs = array_merge( array( 0.01, 0.1 ), range( 1, 100 ) );
                
+               $lang = $this->getLang();
+               
                $fields[] = array(
                        'type' => 'select',
                        'default' => $survey->getField( 'ratio' ),
@@ -240,7 +242,7 @@
                        'id' => 'survey-ratio',
                        'name' => 'survey-ratio',
                        'options' => array_flip( array_map(
-                               function( $n ) { return 
$this->getLang()->formatNum( $n ); },
+                               function( $n ) use( $lang ) { return 
$lang->formatNum( $n ); },
                                array_combine( $nrs, $nrs )
                        ) ),
                );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to