Manual:FixDefaultJsonContentPages.php/pl
Appearance
Ta funkcja została całkowicie usunięta z jądra MediaWiki w wersji MediaWiki 1.43. |
| Wersje MediaWiki: | 1.26 – 1.43 |
| Plik MediaWiki: fixDefaultJsonContentPages.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klasy: | FixDefaultJsonContentPages |
Szczegóły
fixDefaultJsonContentPages.php is a maintenance script that fixes instances of JSON pages prior to them being the ContentHandler.
ContentHandler is part of MediaWiki core beginning with version 1.21.
This script finds JSON pages in the MediaWiki and User namespaces and fixes the page content model in the database.
This script runs by default when you run update.php. It process 100 items in a batch.
Options/Arguments
This script does not take any options or arguments.
Użycie
php maintenance/run.php fixDefaultJsonContentPages
Terminal
$ php maintenance/run.php fixDefaultJsonContentPages Processing MediaWiki:Proofreadpage index data config.json (210)... Setting page_content_model to json...done. Processing MediaWiki:TwinkleConfig.json (345)... Setting page_content_model to json...done. Processing MediaWiki:BookMetadata.json (423)... Setting page_content_model to json...done. Processing MediaWiki:BookFormat.json (424)... Setting page_content_model to json...done.
Whenever the script runs, it makes a note in the database and will not run again. If you want to run the script again, run the command with the --force option.
W wersji MediaWiki 1.43.6 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez
php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.