Commit graph

11 commits

Author SHA1 Message Date
Fomafix 411c7c2f32 Use SettingsBuilder::overrideConfigValue to overwrite a config value
Also use MainConfigNames.

Change-Id: I39f166a92f5fd51b88de9069440797c79e2baa05
2024-11-01 19:17:34 +00:00
Umherirrender a6482646f1 Use namespaced classes
Changes to the use statements done automatically via script

Change-Id: I8faf87956a95e624e038ed1802ef2a701bea4fac
2024-10-20 13:21:48 +02:00
Umherirrender 954db277fc Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I3a7b448f3793f6690bb329a2e5255a558048ed5a
2024-06-10 22:05:45 +02:00
Gergő Tisza 2b7633219b
Declare grant risk levels
createaccount is a core grant which by default isn't really
sensitive, but TitleBlacklist adds tboverride-account which
can be used for social engineering.

Using MediaWikiServices to change configuration is not great,
but it's the least bad option available today - other hooks run
too late, and the extension registry doesn't support extensions
overriding core values.

Bug: T290790
Depends-On: Ib7a195c167f82e686c4ede45388957f9988bf75d
Change-Id: I2d20190266e4094449b5857b88f962a444c2f9b5
2024-01-18 22:29:07 -08:00
Umherirrender dfef274db6 Use namespaced classes
Done automatically via script

Change-Id: If7d9fb3dda6b4c71ac6cf4963da86d49021544a5
2024-01-04 22:31:38 +01:00
Umherirrender 711eebd869 Escape raw title blacklist entry for wikitext when used in messages
A line in the title blacklist can contains pipe as part of a regex,
the pipe is also used in wikitext, so it needs escaping to allow use of
templates in system message.

Bug: T350296
Change-Id: I7f18bb7111b989cc66808f17476bacdf45120e09
2023-11-02 21:09:37 +01:00
gerritbot d4395ce88d Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I87b70d83127a4068bc5b9f9a8ba347283977423e
2023-08-19 14:15:44 +00:00
Umherirrender 319b33cb46 Use HookHandlers for Scribunto hook
Bug: T271033
Change-Id: I486bf703a73d6196c7bb840ac37b290615c548e7
2023-08-15 15:29:02 +02:00
gerritbot 5109fe66b9 Update moved class EditPage
See T321882. Moved in Ibefc44eb64aed

Bug: T321681
Change-Id: I46fc958aa4b9b8406866e16f5f39624d62744465
2023-05-06 21:20:41 +00:00
Thiemo Kreuz 4d2df71552 Various code style cleanups
E.g. reducing deep indention and code duplication. Removing comments
that literally repeat what the code says.

The goal is to make the code easier to read and to maintain in the
future. I hope this is the case.

Change-Id: I6f23bc61ffb8b6d42ec697fec91bb6c92152561f
2022-12-07 14:37:10 +01:00
Reedy 3113e6bf5f Namespace extension
Change-Id: I7917483168a3534d74b62dd2077026c0baa4cbe0
2022-04-08 14:24:11 +01:00
Renamed from includes/TitleBlacklistHooks.php (Browse further)