]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/ioncore_misc.lua
Add 20081002-1.
[ion3.git] / ioncore / ioncore_misc.lua
index a392c5344e99a6197214f5672d325d72d1f69e68..3451d7be4329411e7517b85c089465202e2f81e7 100644 (file)
@@ -1,7 +1,7 @@
 --
 -- ion/share/ioncore_misc.lua
 -- 
--- Copyright (c) Tuomo Valkonen 2004-2007.
+-- Copyright (c) Tuomo Valkonen 2004-2008.
 --
 -- See the included file LICENSE for details.
 --
@@ -22,7 +22,7 @@ local layouts={
 -- attach/creation parameters given in \var{tab}. The layout
 -- "empty" may not be defined.
 function ioncore.deflayout(name, tab)
-    assert(layout ~= "empty")
+    assert(name ~= "empty")
     
     if name=="default" and not tab then
         layouts[name] = empty
@@ -73,7 +73,7 @@ end
 --DOC
 -- gettext+string.format
 function ioncore.TR(s, ...)
-    return string.format(ioncore.gettext(s), unpack(arg))
+    return string.format(ioncore.gettext(s), ...)
 end