wiki.techinc.nl/includes
Bartosz Dziewoński 159dad8abb language: Improve behavior of RawMessage used as MessageSpecifier
We have some code that expects that if you disassemble a
MessageSpecifier using its getKey() and getParams() methods,
then assemble a new MessageSpecifier using the return values,
you will get (at least approximately) the same message.

This was not the case with RawMessage, even though it implements
the MessageSpecifier interface, because its "keys" are not real
message keys, and this operation would mess it up.

Override the MessageSpecifier methods on RawMessage so that they're
compatible with how everyone expects a MessageSpecifier to work.

Add some tests for OutputPage, Message\Converter and Status
to verify some scenarios that would previously have failed.

Depends-On: I41991989515b4791bc1746f26bd404bf4f17dbdb
Depends-On: I612361dd20ff8aad4c0069f1c5af78e3e13b9692
Change-Id: Iddd14efa8b9536277c372257d5a7be135f26a540
2024-07-16 15:06:26 +01:00
..
actions Use namespaced classes (3) 2024-06-16 20:26:43 +02:00
api language: Improve behavior of RawMessage used as MessageSpecifier 2024-07-16 15:06:26 +01:00
auth Don't link temporary account and named account in newusers log 2024-06-20 13:59:14 +01:00
block Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
cache Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
Category
changes
changetags Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
collation
CommentFormatter Move Linker::makeExternalLink() to the LinkRenderer service 2024-06-10 18:47:32 +00:00
CommentStore
composer composer: Remove localization from unlocalizable LockFileChecker 2024-05-30 19:56:29 +01:00
config
content MessageContent: move deprecation from file to class 2024-06-25 16:47:30 -07:00
context
dao
db
debug Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
deferred rdbms: Warn about queries that don't provide the caller 2024-05-31 22:08:19 +00:00
diff Merge "Use namespaced classes (1)" 2024-06-18 19:32:48 +00:00
edit Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
editpage Add MediaWiki\Watchlist namespace to the related classes 2024-05-22 01:23:10 +03:30
exception Use namespaced classes (2) 2024-06-16 20:23:55 +02:00
export Modify WikiExporter's BATCH_SIZE from 50000 to 10000 2024-06-25 14:05:05 -04:00
ExternalLinks
externalstore rdbms: Remove ILoadBalancer::getWriterIndex() 2024-06-03 14:17:57 -07:00
Feed
filebackend
filerepo File: handle stats for recursive transformation calls 2024-06-20 18:47:38 +00:00
gallery
historyblob
Hook
HookContainer
Html
htmlform Use namespaced classes (3) 2024-06-16 20:26:43 +02:00
http
import
installer Merge "DatabaseUpdater: Don't require script path in 'runMaintenance'" 2024-06-19 00:06:29 +00:00
interwiki
jobqueue Use namespaced classes (2) 2024-06-16 20:23:55 +02:00
json Rename JsonUnserial… to JsonDeserial… 2024-06-12 14:50:58 -04:00
language language: Improve behavior of RawMessage used as MessageSpecifier 2024-07-16 15:06:26 +01:00
languages Update the autonym for language ku-arab 2024-05-30 10:27:15 -04:00
libs language: Improve behavior of RawMessage used as MessageSpecifier 2024-07-16 15:06:26 +01:00
linkeddata
linker Linker: fix typo in statslib migration 2024-06-21 16:06:06 +02:00
logging TagLogFormatter: Don't depend on Message implementation details 2024-06-25 20:37:39 +00:00
mail Merge "EmailNotification: Link to editor's talk page, not user page" 2024-06-19 22:31:44 +00:00
Maintenance
media Use namespaced classes (2) 2024-06-16 20:23:55 +02:00
Message language: Improve behavior of RawMessage used as MessageSpecifier 2024-07-16 15:06:26 +01:00
Navigation
objectcache Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
Output OutputPage: Minor refactor to avoid calling deprecated function 2024-07-05 01:06:48 +00:00
OutputTransform Merge "Fix bundle reinjection of ContentDOMTransformStage" 2024-06-24 10:30:29 +00:00
page Merge "page: PageStore::newSelectQueryBuilder is no longer unstable" 2024-06-19 19:53:31 +00:00
pager Allow ContributionsPager to show revisions from the archive table 2024-06-13 16:10:32 +01:00
ParamValidator/TypeDef REST: ArrayDef: type does not have to be an array 2024-06-26 10:18:45 +02:00
parser Sanitizer: delete method removeHTMLtags() 2024-06-27 14:09:00 +00:00
password password: Remove automatic fallback to hash_pbkdf2() 2024-06-08 01:06:22 -04:00
Permissions PermissionManager: Add getPermissionStatus(), deprecate getPermissionErrors() 2024-06-26 01:19:37 +02:00
poolcounter
preferences Use namespaced classes (2) 2024-06-16 20:23:55 +02:00
profiler
rcfeed
registration REST: Add support for RestModules to extension.json 2024-06-25 17:00:01 +00:00
RenameUser
Request
ResourceLoader ForeignResourceManager: Show details about error 2024-06-25 17:23:47 +00:00
Rest REST: Allow other json request types 2024-06-26 14:21:16 +02:00
Revision RevisionStore: Add documentation saying to avoid the trap I fell into 2024-06-11 20:41:21 +00:00
revisiondelete Use RawSQLValue for some SET clauses in update/upsert 2024-05-29 19:48:09 +00:00
revisionlist
search PrefixSearch: Make sure $prefix is a string 2024-05-22 12:35:28 +02:00
session Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
Settings Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
shell Add "implements/extends Stringable" to more classes and interfaces 2024-06-13 16:06:14 +02:00
site
SiteStats Change some type hints from IDatabase to IReadableDatabase 2024-05-24 16:11:12 +00:00
skins Merge "Revert "Add option to show experimental login popup links"" 2024-06-19 19:53:38 +00:00
sparql
specialpage Merge "specialpage: Preload edit count on ChangesListSpecialPage" 2024-06-20 10:53:37 +00:00
specials Merge "SpecialMovePage: Remove unused handling for 'hookaborted' message" 2024-06-25 18:43:40 +00:00
Status language: Improve behavior of RawMessage used as MessageSpecifier 2024-07-16 15:06:26 +01:00
Storage Migrate MediaWiki.editstash to statslib 2024-06-13 17:11:33 +00:00
StubObject
templates Add dark mode support to plain html outputs 2024-06-09 15:03:14 +03:30
tidy
title Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
upload Use namespaced classes (2) 2024-06-16 20:23:55 +02:00
user User: Reset default value for isTemp in loadDefaults 2024-06-25 21:03:01 +00:00
utils Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
watchlist [temp accounts] Make use of isKnown config flag 2024-06-14 17:26:30 +02:00
widget Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
WikiMap Move Linker::makeExternalLink() to the LinkRenderer service 2024-06-10 18:47:32 +00:00
xml Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
.htaccess
AutoLoader.php Merge "AutoLoader: Add MediaWiki\RCFeed" 2024-05-21 21:21:02 +00:00
BootstrapHelperFunctions.php
config-schema.php MainConfigSchema: add 'pagelang' as a permission for 'editpage' 2024-06-27 00:21:48 +00:00
DefaultSettings.php
Defines.php
DevelopmentSettings.php
EntryPointEnvironment.php
GlobalFunctions.php Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
MainConfigNames.php Merge "Revert "Add option to show experimental login popup links"" 2024-06-19 19:53:38 +00:00
MainConfigSchema.php MainConfigSchema: add 'pagelang' as a permission for 'editpage' 2024-06-27 00:21:48 +00:00
MediaWiki.php
MediaWikiEntryPoint.php
MediaWikiServices.php Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
PHPVersionCheck.php
ServiceWiring.php Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
Setup.php Merge "Use namespaced classes (1)" 2024-06-18 19:32:48 +00:00
SetupDynamicConfig.php Change 'powered by MediaWiki' icon to new version, wrapped in Codex buttons 2024-06-17 14:35:48 -04:00
WebStart.php Add dark mode support to plain html outputs 2024-06-09 15:03:14 +03:30