Fixed $copy function not working when evaluating script in options.

This commit is contained in:
Philipp Wolfer
2011-03-28 22:09:28 +02:00
parent 63e43ba4e7
commit a6f46df097

View File

@@ -346,7 +346,7 @@ def func_copy(parser, new, old):
new = "~" + new[1:]
if old.startswith("_"):
old = "~" + old[1:]
parser.context[new] = parser.context.getall(old)[:]
parser.context[new] = parser.context.get(old, [])[:]
return ""
def func_trim(parser, text, char=None):