(bug 37182) Removed hard coded parentheses in SpecialStatistics.php
authorpmolina <patriciomolina@gmail.com>
Sat, 2 Jun 2012 15:06:48 +0000 (12:06 -0300)
committerpmolina <patriciomolina@gmail.com>
Sun, 3 Jun 2012 11:31:24 +0000 (08:31 -0300)
Change-Id: Ie412b21a0426e5aaf9c1cf55aa91ab16fd1c0662

includes/specials/SpecialStatistics.php

index da8f786..46881ec 100644 (file)
@@ -118,9 +118,9 @@ class SpecialStatistics extends SpecialPage {
                if( $descMsg ) {
                        $msg = $this->msg( $descMsg, $descMsgParam );
                        if ( $msg->exists() ) {
-                               $descriptionText = $msg->parse();
+                               $descriptionText = $this->msg( 'parentheses' )->rawParams( $msg->parse() )->escaped();
                                $text .= "<br />" . Xml::element( 'small', array( 'class' => 'mw-statistic-desc'),
-                                       " ($descriptionText)" );
+                                       " $descriptionText" );
                        }
                }
                return Html::rawElement( 'tr', $trExtraParams,