From: Steven Barth Date: Mon, 5 May 2008 19:59:57 +0000 (+0000) Subject: * Fixed menu cache X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=1b65106ac8bab5bb840b3d282d416e160882dea4;p=openwrt-luci.git * Fixed menu cache --- diff --git a/core/src/ffluci/menu.lua b/core/src/ffluci/menu.lua index ed05f881d6..e55c0e76a4 100644 --- a/core/src/ffluci/menu.lua +++ b/core/src/ffluci/menu.lua @@ -43,7 +43,7 @@ scope = { } -- Local menu database -local menu = {} +local menu = nil -- The current pointer local menuc = {} @@ -119,6 +119,7 @@ end -- Returns the menu information function get() if not menu then + menu = {} collect() end return menu