mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Refactor: Pull more classes into baselib
This commit is contained in:
@@ -1,22 +1,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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user