55 parent::__construct(
'Wantedfiles' );
56 $this->repoGroup = $repoGroup;
62 # Specifically setting to use "Wanted Files" (NS_MAIN) as title, so as to get what
63 # category would be used on main namespace pages, for those tricky wikipedia
64 # admins who like to do {{#ifeq:{{NAMESPACE}}|foo|bar|....}}.
65 $catMessage = $this->
msg(
'broken-file-category' )
66 ->page( PageReferenceValue::localReference(
NS_MAIN,
"Wanted Files" ) )
67 ->inContentLanguage();
69 if ( !$catMessage->isDisabled() ) {
70 $category = Title::makeTitleSafe(
NS_CATEGORY, $catMessage->text() );
79 $noForeign =
'-noforeign';
84 ->msg(
'wantedfiletext-cat' . $noForeign )
85 ->params( $category->getFullText() )
89 ->msg(
'wantedfiletext-nocat' . $noForeign )
103 return $this->repoGroup->hasForeignRepos();
130 return (
bool)$this->repoGroup->findFile( $title );
145 'value' =>
'COUNT(*)'
148 'img1.img_name' =>
null,
150 'img2.img_name' =>
null,
152 'options' => [
'GROUP BY' =>
'il_to' ],
154 'img1' => [
'LEFT JOIN',
155 'il_to = img1.img_name'
157 'page' => [
'LEFT JOIN', [
158 'il_to = page_title',
161 'redirect' => [
'LEFT JOIN', [
166 'img2' => [
'LEFT JOIN',
167 'rd_title = img2.img_name'
174 return 'maintenance';
182class_alias( SpecialWantedFiles::class,
'WantedFilesPage' );
setDatabaseProvider(IConnectionProvider $databaseProvider)
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
Class definition for a wanted query page like WantedPages, WantedTemplates, etc.
Prioritized list of file repositories.