http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65377
Revision: 65377
Author: jojo
Date: 2010-04-21 12:27:59 +0000 (Wed, 21 Apr 2010)
Log Message:
-----------
removed invalid usage of parseFormattedNumber()
Modified Paths:
--------------
trunk/extensions/Collection/Collection.php
trunk/extensions/Collection/Collection.templates.php
Modified: trunk/extensions/Collection/Collection.php
===================================================================
--- trunk/extensions/Collection/Collection.php 2010-04-21 11:06:28 UTC (rev
65376)
+++ trunk/extensions/Collection/Collection.php 2010-04-21 12:27:59 UTC (rev
65377)
@@ -177,15 +177,13 @@
$wgAjaxExportList[] = 'wfAjaxPostCollection';
function wfAjaxGetMWServeStatus( $collection_id = '', $writer = 'rl' ) {
- global $wgLang;
-
$json = new Services_JSON();
$result = SpecialCollection::mwServeCommand( 'render_status', array(
'collection_id' => $collection_id,
'writer' => $writer
) );
if ( isset( $result['status']['progress'] ) ) {
- $result['status']['progress'] = $wgLang->parseFormattedNumber(
number_format( $result['status']['progress'], 2 ) );
+ $result['status']['progress'] = number_format(
$result['status']['progress'], 2, '.', '' );
}
$r = new AjaxResponse( $json->encode( $result ) );
$r->setContentType( 'application/json' );
Modified: trunk/extensions/Collection/Collection.templates.php
===================================================================
--- trunk/extensions/Collection/Collection.templates.php 2010-04-21
11:06:28 UTC (rev 65376)
+++ trunk/extensions/Collection/Collection.templates.php 2010-04-21
12:27:59 UTC (rev 65377)
@@ -349,7 +349,7 @@
<span style="display:none" id="renderingArticle"><?php echo ' ' . wfMsg(
'coll-rendering_article', '%PARAM%' ) ?></span>
<span style="display:none" id="renderingPage"><?php echo ' ' . wfMsg(
'coll-rendering_page', '%PARAM%' ) ?></span>
-<?php echo wfMsg( 'coll-rendering_text',
$GLOBALS['wgLang']->parseFormattedNumber( number_format(
$this->data['progress'], 2 ) ), $this->data['status'] ) ?>
+<?php echo wfMsg( 'coll-rendering_text', number_format(
$this->data['progress'], 2, '.', '' ), $this->data['status'] ) ?>
<?php
if ( CollectionSession::isEnabled() ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs