Commit graph

5 commits

Author SHA1 Message Date
Umherirrender 4290e114d4 Show titleblacklist error message in html when using js api module
Parse the message in html according to the errorformat= in the url,
fallback to wikitext to avoid a breaking change.

Bug: T369244
Change-Id: I58b995b3663b7dd286267e640d8d56164bd9be0b
2024-07-16 22:57:46 +02: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 ffc9986a95 api: Rename php class behind action=titleblacklist
titleblacklist is not part of action=query (since a2f5ccd2 back in 2011)
and should not follow that naming schema.

No class alias as nobody needs to call the class directly

Change-Id: If57e5bd9291a894edf42835fed07d37cd8e8abed
2023-07-04 22:42:50 +02:00
Umherirrender 8584bb40bd api: Parse error message with the title to check
When the custom error message contains {{PAGENAME}} or other title based
variables, there are currently parsed as
"Badtitle/dummy_title_for_API_calls_set_in_api.php"
The same custom message is shown correctly on index.php

Bug: T340923
Change-Id: I4c1dc6660976de54ff6ba8f8f7a5768371e61e80
2023-07-02 10:36:33 +02:00
Reedy 3113e6bf5f Namespace extension
Change-Id: I7917483168a3534d74b62dd2077026c0baa4cbe0
2022-04-08 14:24:11 +01:00