summaryrefslogtreecommitdiff
path: root/wiki2text.py
diff options
context:
space:
mode:
Diffstat (limited to 'wiki2text.py')
-rw-r--r--wiki2text.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wiki2text.py b/wiki2text.py
index 564809f..f28c343 100644
--- a/wiki2text.py
+++ b/wiki2text.py
@@ -71,6 +71,8 @@ class TextWikiMarkup (WikiMarkup):
ns = self.wiki_ns_name(qual)
if ns:
if ns == 'NS_IMAGE':
+ if not self.references:
+ return None
text = "[%s: %s]" % (qual, text if text else arg)
tgt = self.image_base + '/' + \
urllib.quote(tgt) + \

Return to:

Send suggestions and report system problems to the System administrator.