From: Patrick Grimm Date: Sun, 3 Aug 2014 19:39:24 +0000 (+0000) Subject: freifunk fix profile expert fs write function. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a31e805696fad7e801a398c3c0fa645a1f922dc3;p=project%2Fluci.git freifunk fix profile expert fs write function. --- diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua b/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua index a0b8f34bc9..0d890e1df6 100644 --- a/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua +++ b/modules/freifunk/luasrc/model/cbi/freifunk/profile_expert.lua @@ -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