summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi-bin/link.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi-bin/link.py b/cgi-bin/link.py
index a65498d..1bc69ac 100644
--- a/cgi-bin/link.py
+++ b/cgi-bin/link.py
@@ -17,7 +17,7 @@ class Link:
self.img=filename
def src(self, target, size=""):
- if self.detect(self.src_datadir+target):
+ if self.detect(target):
src=os.path.split(target)
return os.path.relpath(self.src_datadir + src[1]+"-"+size+".jpeg")
else: