Manual:InitUserPreference.php/zh

Category:MediaWiki code/zh#InitUserPreference.php

详情

initUserPreference.php is a maintenance script that initializes a user preference based on the value of another preference.

选项

选项 说明 必需
--targetName of the user preference to initializeRequired
--sourceName of the user preference to take the value fromRequired

Usage

php maintenance/run.php initUserPreference target source
Terminal
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.

參見

Category:Maintenance scripts/zh Category:User maintenance scripts/zh
Category:Maintenance scripts/zh Category:MediaWiki code/zh Category:User maintenance scripts/zh