Themes for HTTP Proxy error pages

This commit is contained in:
zzz
2009-07-16 19:11:58 +00:00
parent 0650137e32
commit 9bc4f6bacb
8 changed files with 12 additions and 6 deletions

View File

@ -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;