summaryrefslogtreecommitdiff
path: root/cgi-bin/link.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin/link.py')
-rw-r--r--cgi-bin/link.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cgi-bin/link.py b/cgi-bin/link.py
index 3b4baf5..04d91a0 100644
--- a/cgi-bin/link.py
+++ b/cgi-bin/link.py
@@ -28,10 +28,7 @@ class Link:
cssclass="class=\""+order+"\""
else:
cssclass=""
- if self.detect(target):
- return "<a href=\""+self.href(target)+"\"><img src=\""+self.src(target, size)+"\" "+cssclass+"/></a>"
- else:
- return "<img src=\""+self.src(target)+"\" "+cssclass+"\"/>"
+ return "<a href=\""+self.href(target)+"\"><img src=\""+self.src(target, size)+"\" "+cssclass+"/></a>"
def timestamp(self, date):
if self.detect(date):