freifunk fix profile expert fs write function.
authorPatrick Grimm <patrick@lunatiki.de>
Sun, 3 Aug 2014 19:39:24 +0000 (19:39 +0000)
committerPatrick Grimm <patrick@lunatiki.de>
Sun, 3 Aug 2014 19:39:24 +0000 (19:39 +0000)
modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua

index a0b8f34bc9ea6ad27bb31658773313e0c1080e28..0d890e1df6337809923ea1f633848917d741eb36 100644 (file)
@@ -31,7 +31,7 @@ else
        function f.handle(self, state, data)
                if state == FORM_VALID then
                        if data.cop then
-                               fs.writefile(cop, data.rcs:gsub("\r\n", "\n"))
+                               fs.writefile(community, data.cop:gsub("\r\n", "\n"))
                        end
                end
                return true