Author: nextgens
Date: 2006-06-13 12:48:08 +0000 (Tue, 13 Jun 2006)
New Revision: 9181
Modified:
trunk/freenet/src/freenet/clients/http/PageMaker.java
Log:
resolves 456: the CSS theme shown twice
Modified: trunk/freenet/src/freenet/clients/http/PageMaker.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/PageMaker.java 2006-06-13
12:29:08 UTC (rev 9180)
+++ trunk/freenet/src/freenet/clients/http/PageMaker.java 2006-06-13
12:48:08 UTC (rev 9181)
@@ -19,7 +19,7 @@
*/
public class PageMaker {
- private static final String DEFAULT_THEME = "aqua";
+ private static final String DEFAULT_THEME = "clean";
public String theme;
/** Cache for themes read from the JAR file. */
@@ -56,7 +56,8 @@
+ "<link rel=\"stylesheet\"
href=\"/static/themes/"+this.theme+"/theme.css\" type=\"text/css\" />\n");
List themes = getThemes();
for(int i=0; i<themes.size() ; i++){
- buf.append("<link rel=\"alternate stylesheet\"
type=\"text/css\" href=\"/static/themes/"+themes.get(i)+"/theme.css\"
media=\"screen\" title=\""+themes.get(i)+"\" />\n");
+ if(!themes.get(i).toString().equals(theme))
+ buf.append("<link rel=\"alternate stylesheet\"
type=\"text/css\" href=\"/static/themes/"+themes.get(i)+"/theme.css\"
media=\"screen\" title=\""+themes.get(i)+"\" />\n");
}
}