Merge "Clean up applyPatch() usage in the installer."
[lhc/web/wiklou.git] / includes / specials / SpecialUnusedimages.php
index 6407de4..cdab557 100644 (file)
@@ -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();
        }
 
 }