diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-10-17 18:59:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-10-17 18:59:27 +0000 |
commit | c0e0377e384c8167172ee06d8c11ef2f782522c7 (patch) | |
tree | bb89301e467ff61d93a39642354bcfe382571529 /lib/menubuilder.lua | |
parent | fcaab1b363fcd5ff2dccce8f98cacabc5635ba5f (diff) | |
download | acf-core-c0e0377e384c8167172ee06d8c11ef2f782522c7.tar.bz2 acf-core-c0e0377e384c8167172ee06d8c11ef2f782522c7.tar.xz |
Remove all calls to 'module' in preparation for move to Lua 5.2
Use mymodule parameter for module definition.
This was also helpfule in revealing places where the code relied on the global environment.
Diffstat (limited to 'lib/menubuilder.lua')
-rw-r--r-- | lib/menubuilder.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/menubuilder.lua b/lib/menubuilder.lua index b40348a..6bb981f 100644 --- a/lib/menubuilder.lua +++ b/lib/menubuilder.lua @@ -3,7 +3,7 @@ Copyright (C) 2007 Nathan Angelacos Licensed under the terms of GPL2 ]]-- -module(..., package.seeall) +local mymodule = {} posix = require("posix") format = require("acf.format") @@ -60,7 +60,7 @@ local prio_compare = function(x,y) end -- returns a table of all the menu items found, sorted by priority -get_menuitems = function (self) +mymodule.get_menuitems = function (self) local cats = {} local reversecats = {} local foundcontrollers = {} @@ -193,4 +193,4 @@ get_menuitems = function (self) return cats end - +return mymodule |