summaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2017-03-25 20:49:42 +0100
committerCtibor Brančík <ctibor@brancik.cz>2017-03-25 20:49:42 +0100
commit01ee184431e3b7e95cb9cb08f8e44a9ae038e09f (patch)
tree667ce99e729ff4b61889775d4d1c9ddacb081762 /cgi-bin
parent9d070176af452f6629e9234054012462ecfb94c6 (diff)
downloadhnizdo-01ee184431e3b7e95cb9cb08f8e44a9ae038e09f.tar.gz
hnizdo-01ee184431e3b7e95cb9cb08f8e44a9ae038e09f.tar.bz2
Remove fixed prefix from datadir
Diffstat (limited to 'cgi-bin')
-rw-r--r--cgi-bin/link.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgi-bin/link.py b/cgi-bin/link.py
index 9678f6e..a65498d 100644
--- a/cgi-bin/link.py
+++ b/cgi-bin/link.py
@@ -5,7 +5,7 @@ class Link:
def __init__(self, filename=""):
if os.path.exists(os.path.realpath(config.datadir)):
self.datadir=config.datadir
- self.src_datadir="../"+config.datadir
+ self.src_datadir=config.datadir
self.exists=""
else:
print ("Error: directory "+os.path.realpath(config.datadir)+" does not exist. Check config.py")
@@ -29,9 +29,9 @@ class Link:
else:
cssclass=""
if self.detect(target):
- return "<a href=\""+self.href(target)+"\"><img src=\""+self.src(target, size)+"\""+cssclass+"/></a>"
+ return "<a href=\""+self.href(target)+"\"><img src=\""+self.src(target, size)+"\" "+cssclass+"/></a>"
else:
- return "<img src=\""+self.src(target)+"\""+cssclass+"\"/>"
+ return "<img src=\""+self.src(target)+"\" "+cssclass+"\"/>"
def timestamp(self, date):
if self.detect(date):