手册:Orphans.php
Appearance
此功能已在版本1.38.0从MediaWiki核心代码中移除。
请参见deleteOrphanedRevisions.php以获取使用此功能的替代方式。 |
| MediaWiki文件: orphans.php | |
|---|---|
| 位置: | maintenance/ |
| 源代码: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| 类: | Orphans |
orphans.php is a MediaWiki maintenance script that looks for 'orphan' revisions (= revisions, which point to a non-existing page) and for 'childless' pages with no revisions (= pages, which point to a non-existing revision).
用法
| 选项/参数 | 描述 |
|---|---|
| --fix | Actually fix broken entries. |
用法
php maintenance/orphans.php [ --fix ]
Terminal
$ php maintenance/orphans.php Checking for orphan revision table entries... (this may take a while on a large wiki) No orphans! Yay! Checking for pages whose page_latest links are incorrect... (this may take a while on a large wiki) No pages with incorrect latest revision. Yay!
By default, the script finds but does not fix broken entries. To actually fix broken entries, run the script with --fix parameter.