Manual:RefreshFileHeaders.php/ru

Category:MediaWiki code/ru#RefreshFileHeaders.php

подробности

Файл refreshFileHeaders.php это сценарий обслуживания, чтобы обновить заголовки файлов с метаданными.

Options

Option Description Required
--verboseOutput information about each fileПо желанию
--startName of file to start withПо желанию
--endName of file to end withПо желанию
--media_typeMedia type to filter forПо желанию
--major_mimeMajor MIME type to filter forПо желанию
--minor_mimeMinor MIME type to filter forПо желанию
--refreshContentTypeSet to true to refresh file content type from mime data in databaseПо желанию

Usage

php maintenance/run.php refreshFileHeaders [ --start| --end| --major_mime| --media_type| --minor_mime| --refreshContentType| --verbose ]
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Refreshing file metadata

Terminal

Refreshing files' metadata with verbose

Terminal

Refreshing only PNG files' metadata

Terminal

See also

Category:Maintenance scripts/ru Category:File maintenance scripts/ru
Category:File maintenance scripts/ru Category:Maintenance scripts/ru Category:MediaWiki code/ru