Manual:InitUserPreference.php/ja
MediaWiki ファイル: initUserPreference.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.43.1 • 1.42.6 • 1.39.12 |
クラス: | InitUserPreference |
詳細
initUserPreference.php is a maintenance script that initializes a user preference based on the value of another preference.
オプション
オプション | 説明 | 必須かどうか |
---|---|---|
--target | Name of the user preference to initialize | 必須 |
--source | Name of the user preference to take the value from | 必須 |
使用法
php maintenance/run.php initUserPreference target source
Terminal
$ php maintenance/run.php initUserPreference --target visualeditor-hidebetawelcome --source rcfilters-rc-collapsed Initializing 'visualeditor-hidebetawelcome' based on the value of 'rcfilters-rc-collapsed' Processed 7 user(s) Finished!
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを
php maintenance/run.php scriptName
ではなく php maintenance/scriptName.php
を使用して実行する必要があります。