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,25 +1,25 @@
local object = {}
local php
function object.setupInterface( options )
-- Remove setup function
object.setupInterface = nil
-- Copy the PHP callbacks to a local variable, and remove the global
php = mw_interface
mw_interface = nil
-- Install into the mw global
mw = mw or {}
mw.ext = mw.ext or {}
mw.ext.data = object
-- Indicate that we're loaded
package.loaded['mw.ext.data'] = object
end
function object.get( title, language )
return php.get( title, language )
end
return object
local object = {}
local php
function object.setupInterface( options )
-- Remove setup function
object.setupInterface = nil
-- Copy the PHP callbacks to a local variable, and remove the global
php = mw_interface
mw_interface = nil
-- Install into the mw global
mw = mw or {}
mw.ext = mw.ext or {}
mw.ext.data = object
-- Indicate that we're loaded
package.loaded['mw.ext.data'] = object
end
function object.get( title, language )
return php.get( title, language )
end
return object