summaryrefslogtreecommitdiff
path: root/wm/ion/patches/patch-af
blob: 05f0478052627ee5b89f97cf62adf39b87cd2ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-af,v 1.3 2006/08/14 22:40:53 wiz Exp $

--- menu/menulib.lua.orig	2004-01-14 22:43:49.000000000 +0000
+++ menu/menulib.lua
@@ -9,10 +9,10 @@
 -- (at your option) any later version.
 --
 
--- This is a slight abuse of the _LOADED variable perhaps, but library-like 
+-- This is a slight abuse of the package.loaded variable perhaps, but library-like 
 -- packages should handle checking if they're loaded instead of confusing 
 -- the user with require/include differences.
-if _LOADED["menulib"] then return end
+if package.loaded["menulib"] then return end
 
 
 -- Table to hold defined menus.
@@ -239,7 +239,7 @@ local function refresh_styles()
         if table.getn(dirs)==0 then
             return
         end
-        for _, s in dirs do
+        for _, s in pairs(dirs) do
             cmd=cmd.." "..string.shell_safe(s.."/look-")
         end
         
@@ -254,4 +254,4 @@ refresh_styles()
 
 
 -- Mark ourselves loaded.
-_LOADED["menulib"]=true
+package.loaded["menulib"]=true