MediaWiki:Gadget-libSensitiveIPs.js: Difference between revisions

Content deleted Content added
need to wrap the args in an array
force the Lua API to return JSON
Line 7:
throw new TypeError( "type error in arg #1 to 'query' (object expected)" );
}
params.format = 'json';
return mw.libs.lua.call( {
format: 'json',