aboutsummaryrefslogtreecommitdiff
path: root/sources/wiki
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-02-23 09:38:38 +0100
committerJochen Topf <jochen@topf.org>2013-02-23 09:38:38 +0100
commit773c97588c6e5ef5c1171444b925c15690145780 (patch)
treeeae0d3c431db3863d9d99529de3f6f88069f5161 /sources/wiki
parente59a5b889dffdfa81c3aa154225127ce8f1334c2 (diff)
downloadtaginfo-773c97588c6e5ef5c1171444b925c15690145780.tar
taginfo-773c97588c6e5ef5c1171444b925c15690145780.tar.gz
Bugfix: Wiki parser choked on templates in wrong spot
Diffstat (limited to 'sources/wiki')
-rwxr-xr-xsources/wiki/get_wiki_data.rb10
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