Skip to content

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

fix for non-valid json, see http://forum.yacy-websuche.de/viewtopic.php?f=6&t=3179

orbiterc69a4874b404
diff --git a/htroot/yacysearchtrailer.java b/htroot/yacysearchtrailer.java
index 5000d9dab..7ede8adb7 100644
--- a/htroot/yacysearchtrailer.java
+++ b/htroot/yacysearchtrailer.java
@@ -80,9 +80,9 @@ public class yacysearchtrailer {
prop.put("nav-namespace_element_" + i + "_nl", 1);
i++;
}
+ prop.put("nav-namespace_element", i);
i--;
prop.put("nav-namespace_element_" + i + "_nl", 0);
- prop.put("nav-namespace_element", i);
}
// host navigators
@@ -104,9 +104,9 @@ public class yacysearchtrailer {
prop.put("nav-domains_element_" + i + "_nl", 1);
i++;
}
+ prop.put("nav-domains_element", i);
i--;
prop.put("nav-domains_element_" + i + "_nl", 0);
- prop.put("nav-domains_element", i);
}
// author navigators
@@ -130,9 +130,9 @@ public class yacysearchtrailer {
prop.put("nav-authors_element_" + i + "_nl", 1);
i++;
}
+ prop.put("nav-authors_element", i);
i--;
prop.put("nav-authors_element_" + i + "_nl", 0);
- prop.put("nav-authors_element", i);
}
// topics navigator
@@ -159,9 +159,9 @@ public class yacysearchtrailer {
i++;
}
}
+ prop.put("nav-topics_element", i);
i--;
prop.put("nav-topics_element_" + i + "_nl", 0);
- prop.put("nav-topics_element", i);
}
// about box