Manual:renameRestrictions.php
Appearance
MediaWiki ファイル: renameRestrictions.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.42.3 • 1.41.4 • 1.39.10 |
クラス: | RenameRestrictions |
詳細
renameRestrictions.php is a maintenance script that updates the page_restrictions and protected_titles tables to use a new name for a given restriction level.
MediaWiki has many built-in protection levels. Using this script, we can update the page_restrictions table to rename any current restriction level.
引数
引数 | 説明 | 必須かどうか |
---|---|---|
oldlevel | Old name of restriction level | 必須 |
newlevel | New name of restriction level | 必須 |
使用法
php maintenance/renameRestrictions.php oldlevel newlevel
Terminal
$ php maintenance/renameRestrictions.php sysop user