tiny fix for config file containing spaces in name

This commit is contained in:
brianleroux 2010-09-22 16:13:25 +02:00
parent 7108076260
commit 36949f4af1
2 changed files with 434 additions and 252 deletions

File diff suppressed because it is too large Load Diff

View File

@ -46,7 +46,7 @@ class Create < Classic
@config[:version] = doc.root.attributes["version"]
doc.root.elements.each do |n|
@config[:name] = n.text if n.name == 'name'
@config[:name] = n.text.gsub('-','').gsub(' ','') if n.name == 'name'
@config[:description] = n.text if n.name == 'description'
@config[:icon] = n.attributes["src"] if n.name == 'icon'
@config[:content] = n.attributes["src"] if n.name == 'content'