Why:
* The documentation for wgAutopromoteOnce gives one valid value
for the "event" but says "Where the event is either"
* There is only one accepted format for "event", so this should
be clarified in the documentation.
What:
* Improve the documentation for wgAutopromoteOnce.
Change-Id: I014c0102985152e1bb7dda3a48a5e5988f24ddbd
This update the fallback language from Minnan (nan) to Minnan (Traditional Han script) (nan-hant).
Change-Id: I40182e667c72778ad8e00a1a541bbc941938b11f
This allows to access $this->blockUtils.
Also make the parameter WebRequest $request mandatory. because it is
already always present.
Change-Id: I97d5af0c5b1f54c4bd666183ae98199aa576596e
The discovery endpoint provides basic information about accessing the
wiki's APIs, as well as a directory of available modules.
Bug: T365753
Change-Id: I161aa68566da91867b650e13c8aadc87cd0c428c
Since legacy skins do not load the full version of Codex, many
Codex message box appeared unstyled on pages which call
functions using Html::messageBox
Legacy skins do not load Codex by default, so these should be
explicitly added by the interface using them. Since there are
lots of these, for now we'll do this in the skin to avoid
breakage.
For skins supplying Codex via other style modules,
this will be negligible because of gzip, they will also be
able to remove the style if necessary.
Bug: T373602
Bug: T375246
Change-Id: If3c2d26de3faa9f85025ea8643d97242cad27574
This applies JSON Schema validation in phpunit tests where appropriate:
1) In ModuleSpecHandlerTest, the generated OpenApi specs are validated
against the OpenAPI 3 schema.
2) In RestStructureTest, module definition files are validated against
the mwapi schema.
This patch introduces a new trait to make it easy for phpunit test cases
to perform validation.
This patch also fixes some issues with the docs/rest/mwapi-1.0.json
schema and the includes/Rest/content.v1.json module definition.
Change-Id: I966cddb337c9373ed3a369496548a8d8c538ae84
The query runtime is recorded in Database.php with 3 decimal places:
'runtime_ms' => round( $queryRuntime * 1000, 3 ),
So it makes no sense to display it here with 4 decimal places.
Change-Id: If6d40344bddb41950356b346d713047a4c7871ed
Remove the "lb" option from __construct(). Instead, just automatically
make an instance of LoadBalancerDisabled if "connection" is null. Update
newDisabled(), the only caller using "lb", to pass a null connection.
Explicitly specify the extra LoadBalancer parameters in __construct().
Rename "lb" field to "mainLB" for consistency with other subclasses.
Tweak documentation for LBFactory subclasses to use more consistent
language about LoadBalancer and clusters.
Change-Id: Ia81f1a9eb00e682e9a223770573d21f92857a698
* Redirect to the login page for anonymous users trying to view their
IP user contributions on 'Special:MyContributions'.
* Redirect to the login page for anonymous users trying to view their
IP user logs on 'Special:MyLog'.
* Redirect to the login page for anonymous users visiting
'Special:MyPage'.
* Redirect to the login page for anonymous users visiting
'Special:MyTalk'.
* Redirect to the login page for anonymous users trying to view their
uploads on 'Special:MyUploads'.
Bug: T372722
Change-Id: I24a858488db6b64d9de337c663b136519bf0583a
For a private function the $fname does not need to be optional,
it should be easy to pass it always.
Change-Id: Ifcddcd2479ae6f8bbf68210441c61ee7a45e1489