(bug 37181) Removed hard coded parentheses in SpecialMIMEsearch.php
authorpmolina <patriciomolina@gmail.com>
Sat, 2 Jun 2012 15:08:23 +0000 (12:08 -0300)
committerpmolina <patriciomolina@gmail.com>
Sun, 3 Jun 2012 12:59:54 +0000 (09:59 -0300)
Change-Id: I32d351dc24e4029bfea68b36904b44022375f4b3

includes/specials/SpecialMIMEsearch.php

index b193a1c..46a35c4 100644 (file)
@@ -96,6 +96,7 @@ class MIMEsearchPage extends QueryPage {
                );
 
                $download = Linker::makeMediaLinkObj( $nt, $this->msg( 'download' )->escaped() );
+               $download = $this->msg( 'parentheses' )->rawParams( $download )->escaped();
                $lang = $this->getLanguage();
                $bytes = htmlspecialchars( $lang->formatSize( $result->img_size ) );
                $dimensions = $this->msg( 'widthheight' )->numParams( $result->img_width,
@@ -103,7 +104,7 @@ class MIMEsearchPage extends QueryPage {
                $user = Linker::link( Title::makeTitle( NS_USER, $result->img_user_text ), htmlspecialchars( $result->img_user_text ) );
                $time = htmlspecialchars( $lang->userTimeAndDate( $result->img_timestamp, $this->getUser() ) );
 
-               return "($download) $plink . . $dimensions . . $bytes . . $user . . $time";
+               return "$download $plink . . $dimensions . . $bytes . . $user . . $time";
        }
 
        /**