diff options
Diffstat (limited to 'sources/wiki')
-rwxr-xr-x | sources/wiki/get_wiki_data.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sources/wiki/get_wiki_data.rb b/sources/wiki/get_wiki_data.rb index f90f4f5..44f03b0 100755 --- a/sources/wiki/get_wiki_data.rb +++ b/sources/wiki/get_wiki_data.rb @@ -171,10 +171,16 @@ class WikiPage end end if template.named_parameters['image'] - set_image(template.named_parameters['image'][0], db) + img = template.named_parameters['image'][0] + if img.class != Template + set_image(img, db) + end end if template.named_parameters['group'] - @group = template.named_parameters['group'][0] + group = template.named_parameters['group'][0] + if group.class != Template + @group = group + end end if template.named_parameters['onNode'] == ['yes'] @onNode = true |