diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2017-03-25 20:59:15 +0100 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2017-03-25 20:59:15 +0100 |
commit | 4a555df369c3795a40ff00e1bbddaf833999dac7 (patch) | |
tree | 787d3af821dde77e95463ff919d1c6c5e164809d | |
parent | 01ee184431e3b7e95cb9cb08f8e44a9ae038e09f (diff) | |
download | hnizdo-4a555df369c3795a40ff00e1bbddaf833999dac7.tar.gz hnizdo-4a555df369c3795a40ff00e1bbddaf833999dac7.tar.bz2 |
Fix bad argument in Link.src
-rw-r--r-- | cgi-bin/link.py | 2 |
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: |