Manual:InitUserPreference.php/pl
Appearance
| Plik MediaWiki: initUserPreference.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Klasy: | InitUserPreference |
Details
initUserPreference.php is a maintenance script that initializes a user preference based on the value of another preference.
Options
| Option | Description | Required? |
|---|---|---|
| --target | Name of the user preference to initialize | Wymagane |
| --source | Name of the user preference to take the value from | Wymagane |
Usage
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!
In MediaWiki version 1.39.15 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.