Author: damoxc

Revision: 6161

Log:
        revert to the default theme if the selected themes stylesheet is missing

Diff:
Modified: trunk/deluge/ui/web/server.py
===================================================================
--- trunk/deluge/ui/web/server.py       2010-01-27 11:14:05 UTC (rev 6160)
+++ trunk/deluge/ui/web/server.py       2010-01-27 20:23:15 UTC (rev 6161)
@@ -400,8 +400,11 @@
         self.putChild("tracker", Tracker())
 
         theme = component.get("DelugeWeb").config["theme"]
+        if not os.path.isfile(rpath("css", "xtheme-%s.css" % theme)):
+            theme = CONFIG_DEFAULTS.get("theme")
         self.__stylesheets.insert(1, "/css/xtheme-%s.css" % theme)
 
+
     @property
     def scripts(self):
         return self.__scripts


-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to