function __construct( $name = 'Unusedimages' ) {
parent::__construct( $name );
}
-
+
function isExpensive() {
return true;
}
-
+
function sortDescending() {
return false;
}
-
+
function isSyndicated() {
return false;
}
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' ),
}
function getPageHeader() {
- return wfMsgExt( 'unusedimagestext', array( 'parse' ) );
+ return $this->msg( 'unusedimagestext' )->parseAsBlock();
}
}