24 namespace MediaWiki\Specials;
41 parent::__construct(
'Unusedimages' );
59 'tables' => [
'image',
'imagelinks' ],
62 'title' =>
'img_name',
63 'value' =>
'img_timestamp',
65 'conds' => [
'il_to' => null ],
66 'join_conds' => [
'imagelinks' => [
'LEFT JOIN',
'il_to = img_name' ] ]
71 $retval[
'tables'] = [
'image',
'page',
'categorylinks',
73 $retval[
'conds'][
'page_namespace'] =
NS_FILE;
74 $retval[
'conds'][
'cl_from'] =
null;
75 $retval[
'conds'][] =
'img_name = page_title';
76 $retval[
'join_conds'][
'categorylinks'] = [
77 'LEFT JOIN',
'cl_from = page_id' ];
78 $retval[
'join_conds'][
'imagelinks'] = [
79 'LEFT JOIN',
'il_to = page_title' ];
92 'unusedimagestext-categorizedimgisused'
95 return $this->
msg(
'unusedimagestext' )->parseAsBlock();
107 class_alias( SpecialUnusedImages::class,
'SpecialUnusedImages' );
A class containing constants representing the names of configuration variables.
const CountCategorizedImagesAsUsed
Name constant for the CountCategorizedImagesAsUsed setting, for use with Config::get()
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
setDatabaseProvider(IConnectionProvider $databaseProvider)
getConfig()
Shortcut to get main config object.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.