mediawiki-extensions-Scribunto/includes
theknightwho a091b46d65 Use correct variable for error message in mw.loadJsonData
`mw.loadJsonData` in mw.lua throws an error if the input argument is
not a string. The error message should refer to the type of the input
argument `module`, not that of the variable `arg` (which is usually
undeclared, giving the type `nil`).

This also necessitates updating test `mw.loadJsonData, bad title (1)`
in CommonTests.lua, which checks for the error message if the input
is the number 0; the correct message should say "got number", not
"got nil".

Bug: T364987
Change-Id: I8362e91489a8ddc4c890e2799892f692c497c9b9
2024-05-15 14:05:32 +01:00
..
Engines Use correct variable for error message in mw.loadJsonData 2024-05-15 14:05:32 +01:00
Hooks Create HookRunner class and the hook handler interfaces 2023-06-19 21:39:33 +00:00
ApiScribuntoConsole.php Use ObjectCacheFactory instead of deprecated ObjectCache method 2024-05-14 20:07:42 +00:00
CodeEditorHooks.php Inject services into ApiScribuntoConsole, CodeEditorHooks and Hooks 2024-03-18 04:40:47 +00:00
Hooks.php Use ObjectCacheFactory instead of deprecated ObjectCache method 2024-05-14 20:07:42 +00:00
Scribunto.php Replace global configuration variables 2024-03-18 04:40:44 +00:00
ScribuntoContent.php Use namespaced classes 2024-01-05 19:24:06 +01:00
ScribuntoContentHandler.php Replace global configuration variables 2024-03-18 04:40:44 +00:00
ScribuntoEngineBase.php build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 2024-03-10 23:46:30 +01:00
ScribuntoException.php Use namespaced classes 2024-01-05 19:24:06 +01:00
ScribuntoModuleBase.php Use namespaced classes 2024-01-05 19:24:06 +01:00