Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Bug: could not install from url and use the skin (because of a two names "use")

allo955d26b11747
diff --git a/htroot/Skins_p.html b/htroot/Skins_p.html
index 34017d214..a3acccb3a 100644
--- a/htroot/Skins_p.html
+++ b/htroot/Skins_p.html
@@ -22,13 +22,13 @@ Skins:<br>
#{/skinlist}#
</select>
<br>
-<input type="submit" name="use" value="Use">
+<input type="submit" name="use_button" value="Use">
<input type="submit" name="delete" value="Delete"><br>
</form>
<form action="Skins_p.html">
Install new Skin from URL:<br>
-<input type="text" name="url" size="30"><input type="checkbox" name="use" value="on">Use this Skin<br>
+<input type="text" name="url" size="30"><input type="checkbox" name="use_skin" value="on">Use this Skin<br>
<input type="submit" value="install">
</form>
diff --git a/htroot/Skins_p.java b/htroot/Skins_p.java
index 9c7e5788c..e8ffb37cf 100644
--- a/htroot/Skins_p.java
+++ b/htroot/Skins_p.java
@@ -102,7 +102,7 @@ public class Skins_p {
if (post != null){
//change skin
- if(post.containsKey("use")){
+ if(post.containsKey("use_button")){
changeSkin(env, skinPath, (String)post.get("skin"));
//delete skin
@@ -134,7 +134,7 @@ public class Skins_p {
prop.put("status", 2);//error saving the skin
return prop;
}
- if(post.containsKey("use") && ((String)post.get("use")).equals("on")){
+ if(post.containsKey("use_skin") && ((String)post.get("use_skin")).equals("on")){
changeSkin(env, skinPath, url.substring(url.lastIndexOf("/"), url.length()));
}
}