mediawiki-extensions-TitleB.../includes/mw.ext.TitleBlacklist.lua
Kunal Mehta 843434f64d Move classes into includes/
Change-Id: I24d0b37d49337efd35d12adf6adbfc403e81fa50
2018-02-15 14:35:32 -08:00

23 lines
475 B
Lua

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