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

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent 991d2420de
commit 955d26b117

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

@ -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()));
}
}

Loading…
Cancel
Save