Manual:renameRestrictions.php
MediaWiki file: renameRestrictions.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | RenameRestrictions |
Details[edit]
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.
Arguments[edit]
Argument | Description | Required |
---|---|---|
oldlevel | Old name of restriction level | Required |
newlevel | New name of restriction level | Required |
Usage[edit]
php maintenance/renameRestrictions.php oldlevel newlevel
Terminal
$ php maintenance/renameRestrictions.php sysop user