Skip to content

Commit

Permalink
*)fixed error when setting empty language/skin
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2016 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
auron_x committed Apr 8, 2006
1 parent 30e4fc3 commit aaaaf88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htroot/ConfigLanguage_p.java
Expand Up @@ -83,7 +83,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve

if (post != null){
//change language
if(post.containsKey("use_button")){
if(post.containsKey("use_button") && (String)post.get("lang") != null){
translator.changeLang(env, langPath, (String)post.get("lang"));

//delete language file
Expand Down
2 changes: 1 addition & 1 deletion htroot/ConfigSkins_p.java
Expand Up @@ -112,7 +112,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve

if (post != null){
//change skin
if(post.containsKey("use_button")){
if(post.containsKey("use_button") && (String)post.get("skin") != null){
changeSkin(switchboard, skinPath, (String)post.get("skin"));

//delete skin
Expand Down

0 comments on commit aaaaf88

Please sign in to comment.