diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2012-06-25 00:15:51 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2012-06-25 00:15:51 +0200 |
commit | 1a7b43068c4cfbb7baa3f781fb7d65a708f63a5c (patch) | |
tree | f10e596a7e4e4fb63fa894349683e2759a7bdd26 | |
parent | 4caf95bfd031640010d968e05756399ec3715ea3 (diff) | |
download | vicious-legacy-1a7b43068c4cfbb7baa3f781fb7d65a708f63a5c.tar.xz |
contrib: initialization bugfix after lua52 port
The _NAME field was missing in the contrib table. Thanks to Jorg
Thalheim for reporting this.
-rw-r--r-- | contrib/init.lua | 2 | ||||
-rw-r--r-- | helpers.lua | 4 | ||||
-rw-r--r-- | init.lua | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/contrib/init.lua b/contrib/init.lua index d30b33d..4328aae 100644 --- a/contrib/init.lua +++ b/contrib/init.lua @@ -11,7 +11,7 @@ local wrequire = require("vicious.helpers").wrequire -- Vicious: widgets for the awesome window manager -- vicious.contrib -local contrib = {} +local contrib = { _NAME = "vicious.contrib" } -- }}} -- Load modules at runtime as needed diff --git a/helpers.lua b/helpers.lua index 93a701b..4c15690 100644 --- a/helpers.lua +++ b/helpers.lua @@ -33,8 +33,8 @@ local scroller = {} -- {{{ Helper functions -- {{{ Loader of vicious modules -function helpers.wrequire(table, key) - local module = rawget(table, key) +function helpers.wrequire(table, key) + local module = rawget(table, key) return module or require(table._NAME .. "." .. key) end -- }}} @@ -22,6 +22,7 @@ local helpers = require("vicious.helpers") -- Vicious: widgets for the awesome window manager local vicious = {} vicious.widgets = require("vicious.widgets") +--vicious.contrib = require("vicious.contrib") -- Initialize tables local timers = {} |