1
0
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:
gnosygnu
2021-12-19 16:19:19 -05:00
parent 48559edffe
commit 0e80d7ef6d
7999 changed files with 1375876 additions and 1365947 deletions

View File

@@ -1,22 +1,22 @@
local ParserFunctions = {}
local php
function ParserFunctions.expr( expression )
return php.expr( expression )
end
function ParserFunctions.setupInterface( options )
-- Boilerplate
ParserFunctions.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.ParserFunctions = ParserFunctions
package.loaded['mw.ext.ParserFunctions'] = ParserFunctions
end
return ParserFunctions
local ParserFunctions = {}
local php
function ParserFunctions.expr( expression )
return php.expr( expression )
end
function ParserFunctions.setupInterface( options )
-- Boilerplate
ParserFunctions.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.ParserFunctions = ParserFunctions
package.loaded['mw.ext.ParserFunctions'] = ParserFunctions
end
return ParserFunctions