Manual:initUserPreference.php
Appearance
| MediaWiki ファイル: initUserPreference.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| クラス: | 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.15 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。