Index: trunk/extensions/Survey/specials/SpecialSurvey.php |
— | — | @@ -233,6 +233,8 @@ |
234 | 234 | |
235 | 235 | $nrs = array_merge( array( 0.01, 0.1 ), range( 1, 100 ) ); |
236 | 236 | |
| 237 | + $lang = $this->getLang(); |
| 238 | + |
237 | 239 | $fields[] = array( |
238 | 240 | 'type' => 'select', |
239 | 241 | 'default' => $survey->getField( 'ratio' ), |
— | — | @@ -240,7 +242,7 @@ |
241 | 243 | 'id' => 'survey-ratio', |
242 | 244 | 'name' => 'survey-ratio', |
243 | 245 | 'options' => array_flip( array_map( |
244 | | - function( $n ) { return $this->getLang()->formatNum( $n ); }, |
| 246 | + function( $n ) use( $lang ) { return $lang->formatNum( $n ); }, |
245 | 247 | array_combine( $nrs, $nrs ) |
246 | 248 | ) ), |
247 | 249 | ); |