]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/ioncore_menudb.lua
[svn-upgrade] Integrating new upstream version, ion3 (20080411)
[ion3.git] / ioncore / ioncore_menudb.lua
index 0248b14751cc75f233907bb6730cba3c49bec9e3..17b0c4af51e0b9274cef431eb05f273cbf04e78a 100644 (file)
@@ -1,7 +1,7 @@
 --
 -- ion/ioncore/ioncore_menudb.lua -- Routines for defining menus.
 -- 
--- Copyright (c) Tuomo Valkonen 2004-2007.
+-- Copyright (c) Tuomo Valkonen 2004-2008.
 --
 -- See the included file LICENSE for details.
 --
@@ -260,7 +260,7 @@ local function receive_styles(str)
     local styles={}
     local stylemenu={}
     
-    for look in string.gfind(data, "(look[-_][^\n]*)%.lua\n") do
+    for look in string.gmatch(data, "(look[-_][^\n]*)%.lua\n") do
         if not found[look] then
             found[look]=true
             table.insert(styles, look)