r64593 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64592‎ | r64593 | r64594 >
Date:11:42, 4 April 2010
Author:vrandezo
Status:deferred
Tags:
Comment:
prettier numbers
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Math/SRF_Math.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php
@@ -20,7 +20,8 @@
2121
2222 public function getResult( $results, $params, $outputmode ) {
2323 $this->readParameters( $params, $outputmode );
24 - return $this->getResultText( $results, SMW_OUTPUT_HTML );
 24+ global $wgLang;
 25+ return $wgLang->formatNum($this->getResultText($results, SMW_OUTPUT_HTML));
2526 }
2627
2728 protected function getResultText( $res, $outputmode ) {

Status & tagging log