(zhtable) Add zh2Hans: '这么' => '这么' for better segmentation
[lhc/web/wiklou.git] / includes / specials / SpecialUnusedimages.php
index 6c8f6c5..cdab557 100644 (file)
@@ -30,15 +30,15 @@ class UnusedimagesPage extends ImageQueryPage {
        function __construct( $name = 'Unusedimages' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() {
                return true;
        }
-       
+
        function sortDescending() {
                return false;
        }
-       
+
        function isSyndicated() {
                return false;
        }
@@ -47,9 +47,9 @@ class UnusedimagesPage extends ImageQueryPage {
                global $wgCountCategorizedImagesAsUsed;
                $retval = array (
                        'tables' => array ( 'image', 'imagelinks' ),
-                       'fields' => array ( "'" . NS_FILE . "' AS namespace",
-                                       'img_name AS title',
-                                       'img_timestamp AS value',
+                       'fields' => array ( 'namespace' => NS_FILE,
+                                       'title' => 'img_name',
+                                       'value' => 'img_timestamp',
                                        'img_user', 'img_user_text',
                                        'img_description' ),
                        'conds' => array ( 'il_to IS NULL' ),
@@ -77,7 +77,7 @@ class UnusedimagesPage extends ImageQueryPage {
        }
 
        function getPageHeader() {
-               return wfMsgExt( 'unusedimagestext', array( 'parse' ) );
+               return $this->msg( 'unusedimagestext' )->parseAsBlock();
        }
 
 }