summaryrefslogtreecommitdiff
path: root/extensions/TitleBlacklist/mw.ext.TitleBlacklist.lua
blob: 1b48eed1dad43bacf0782d233d493c8cb00fde9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local TitleBlacklist = {}
local php

function TitleBlacklist.test( action, title )
	return php.test( action, title )
end

function TitleBlacklist.setupInterface( options )
	-- Boilerplate
	TitleBlacklist.setupInterface = nil
	php = mw_interface
	mw_interface = nil

	-- Register this library in the "mw" global
	mw = mw or {}
	mw.ext = mw.ext or {}
	mw.ext.TitleBlacklist = TitleBlacklist

	package.loaded['mw.ext.TitleBlacklist'] = TitleBlacklist
end

return TitleBlacklist