1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-10-27 20:34:16 +00:00

Scribunto: Fix 'Module:Exception:2 attempt to index ? (a nil value)' on some en.u pages [#475]

This commit is contained in:
gnosygnu 2019-06-02 21:44:47 -04:00
parent c7f54287af
commit 3b6efe4274

View File

@ -605,9 +605,10 @@ function MWServer:newEnvironment()
env.setfenv, env.getfenv = mw.makeProtectedEnvFuncs(
self.protectedEnvironments, self.protectedFunctions )
-- env.debug = {
-- traceback = debug.traceback
-- }
-- XOWA:uncommented env.debug; ISSUE#:475; DATE:2019-06-02
env.debug = {
traceback = debug.traceback
}
env.os = {
date = os.date,
difftime = os.difftime,