summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-03-09 18:22:41 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-03-09 18:22:41 +0100
commit0aaa4f998211e8c63d6b43d3a36fe7d6b561a36f (patch)
treeecd879a022d52c152cd73238eecb0a51ba51e36e /module/web
parentfix (diff)
downloadpyload-0aaa4f998211e8c63d6b43d3a36fe7d6b561a36f.tar.xz
several fixes, closed #84
Diffstat (limited to 'module/web')
-rw-r--r--module/web/ServerThread.py3
-rw-r--r--module/web/templates/default/login.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py
index ffd6a2d35..49fd9b055 100644
--- a/module/web/ServerThread.py
+++ b/module/web/ServerThread.py
@@ -38,7 +38,7 @@ class WebServer(threading.Thread):
except Exception:
self.lighttpd = False
- if self.lighttpd and self.pycore.config['webinterface']['lighttpd']:
+ if self.lighttpd:
self.pycore.logger.info("Starting lighttpd Webserver: %s:%s" % (host, port))
config = file(join(path, "lighttpd", "lighttpd_default.conf"), "rb")
content = config.readlines()
@@ -79,6 +79,7 @@ class WebServer(threading.Thread):
else:
self.p.kill()
+ return True
except:
pass
diff --git a/module/web/templates/default/login.html b/module/web/templates/default/login.html
index 185245f67..2f93e5aab 100644
--- a/module/web/templates/default/login.html
+++ b/module/web/templates/default/login.html
@@ -27,7 +27,7 @@
</form>
{% if form.errors %}
-<p{% trans "Your username and password didn't match. Please try again." %}</p>
+<p>{% trans "Your username and password didn't match. Please try again." %}</p>
{% endif %}
</div>