From 9bc4f6bacb0b8bd9c98557cea7f902e660ce6a09 Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 16 Jul 2009 19:11:58 +0000 Subject: [PATCH] Themes for HTTP Proxy error pages --- .../java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java | 3 +++ history.txt | 3 +++ installer/resources/ahelper-conflict-header.ht | 2 +- installer/resources/dnf-header.ht | 2 +- installer/resources/dnfb-header.ht | 2 +- installer/resources/dnfh-header.ht | 2 +- installer/resources/dnfp-header.ht | 2 +- router/java/src/net/i2p/router/RouterVersion.java | 2 +- 8 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index f450682cd0..1bb6690f65 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -831,6 +831,9 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable } catch (IOException ioe) {} return; } + // theme hack + if (filename.startsWith("themes/console/default/")) + filename = filename.replaceFirst("default", I2PAppContext.getGlobalContext().getProperty("routerconsole.theme", "light")); File file = new File(_errorDir, filename); if (file.exists() && !file.isDirectory()) { String type; diff --git a/history.txt b/history.txt index f7210dba66..8234bda439 100644 --- a/history.txt +++ b/history.txt @@ -1,3 +1,6 @@ +2009-07-16 zzz + * HTTP Proxy: Themes for error pages + 2009-07-16 sponge * ministreaming: - small pedantic fix diff --git a/installer/resources/ahelper-conflict-header.ht b/installer/resources/ahelper-conflict-header.ht index 068558d6a5..b9d63600f4 100644 --- a/installer/resources/ahelper-conflict-header.ht +++ b/installer/resources/ahelper-conflict-header.ht @@ -7,7 +7,7 @@ Proxy-Connection: close Destination key conflict - +