Author: toad
Date: 2006-12-19 13:30:06 +0000 (Tue, 19 Dec 2006)
New Revision: 11479
Modified:
trunk/freenet/src/freenet/clients/http/SymlinkerToadlet.java
Log:
What on earth is going on here?
Modified: trunk/freenet/src/freenet/clients/http/SymlinkerToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/SymlinkerToadlet.java
2006-12-19 13:29:43 UTC (rev 11478)
+++ trunk/freenet/src/freenet/clients/http/SymlinkerToadlet.java
2006-12-19 13:30:06 UTC (rev 11479)
@@ -39,29 +39,19 @@
});
String fns[] = tslconfig.getStringArr("symlinks");
- if (fns != null)
+ if (fns != null) {
for (int i = 0 ; i < fns.length ; i++) {
+ //System.err.println("Load: " +
StringArrOption.decode(fns[i]));
String tuple[] = fns[i].split("#");
if (tuple.length == 2)
System.out.println("Adding link: " +
tuple[0] + " => " + tuple[1]);
- }
-
- if (fns != null)
- for (int i = 0 ; i < fns.length ; i++) {
- //System.err.println("Load: " +
StringArrOption.decode(fns[i]));
- String tuple[] =
StringArrOption.decode(fns[i]).split("#");
if (tuple.length == 2)
addLink(tuple[0], tuple[1], false);
}
+ }
+
tslconfig.finishedInitialization();
- fns = tslconfig.getStringArr("symlinks");
- if (fns != null)
- for (int i = 0 ; i < fns.length ; i++) {
- String tuple[] =
StringArrOption.decode(fns[i]).split("#");
- if (tuple.length == 2)
- Logger.normal(this, "Added link: " +
tuple[0] + " => " + tuple[1]);
- }
addLink("/sl/search/", "/plugins/plugins.Librarian/", false);
addLink("/sl/gallery/", "/plugins/plugins.TestGallery/", false);
}