diff options
author | Jochen Topf <jochen@topf.org> | 2013-02-23 09:38:38 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-02-23 09:38:38 +0100 |
commit | 773c97588c6e5ef5c1171444b925c15690145780 (patch) | |
tree | eae0d3c431db3863d9d99529de3f6f88069f5161 /sources/wiki | |
parent | e59a5b889dffdfa81c3aa154225127ce8f1334c2 (diff) | |
download | taginfo-773c97588c6e5ef5c1171444b925c15690145780.tar taginfo-773c97588c6e5ef5c1171444b925c15690145780.tar.gz |
Bugfix: Wiki parser choked on templates in wrong spot
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 |