Commit cd5eaa26c007c8108df40ca4f2bc51a5e97e9e8d

Authored by Karpikau Andrei
1 parent e4977530

check domain as global variable

@@ -224,14 +224,14 @@ module Kanjai @@ -224,14 +224,14 @@ module Kanjai
224 value['###FIRST_ITEM_ACTIVE###'] = '' 224 value['###FIRST_ITEM_ACTIVE###'] = ''
225 end 225 end
226 value['###REPEAT_NUMBER###'] = key.to_s 226 value['###REPEAT_NUMBER###'] = key.to_s
227 - self.content_generator(item[:children], subparts, value) 227 + self.content_generator(domain, item[:children], subparts, value)
228 end 228 end
229 end 229 end
230 else 230 else
231 attributes = self.replace_attributes_marker(item[:attributes], hash_value) 231 attributes = self.replace_attributes_marker(item[:attributes], hash_value)
232 if item[:name] == 'select' 232 if item[:name] == 'select'
233 subparts.select(attributes) do |next_subparts| 233 subparts.select(attributes) do |next_subparts|
234 - self.content_generator(item[:children], next_subparts, hash_value) 234 + self.content_generator(domain, item[:children], next_subparts, hash_value)
235 end 235 end
236 elsif item[:name] == 'p' 236 elsif item[:name] == 'p'
237 if item[:children].count > 0 237 if item[:children].count > 0
@@ -239,7 +239,7 @@ module Kanjai @@ -239,7 +239,7 @@ module Kanjai
239 end 239 end
240 else 240 else
241 subparts.send(item[:name], attributes) do |next_subparts| 241 subparts.send(item[:name], attributes) do |next_subparts|
242 - self.content_generator(item[:children], next_subparts, hash_value) 242 + self.content_generator(domain, item[:children], next_subparts, hash_value)
243 end 243 end
244 end 244 end
245 end 245 end
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.213" 2 + VERSION = "0.0.214"
3 end 3 end