summaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2017-03-25 20:59:15 +0100
committerCtibor Brančík <ctibor@brancik.cz>2017-03-25 20:59:15 +0100
commit4a555df369c3795a40ff00e1bbddaf833999dac7 (patch)
tree787d3af821dde77e95463ff919d1c6c5e164809d /cgi-bin
parent01ee184431e3b7e95cb9cb08f8e44a9ae038e09f (diff)
downloadhnizdo-4a555df369c3795a40ff00e1bbddaf833999dac7.tar.gz
hnizdo-4a555df369c3795a40ff00e1bbddaf833999dac7.tar.bz2
Fix bad argument in Link.src
Diffstat (limited to 'cgi-bin')
-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: