From 4c907bec89d08762b5896863b46b6d7e617bc836 Mon Sep 17 00:00:00 2001 From: reger Date: Tue, 14 Apr 2015 02:07:02 +0200 Subject: [PATCH] show "Augmented Browsing" link in search result only if urlproxy allowed and option switched on in layout (AugmentedBrowsing_p.html, ConfigSearchPage_p.html) as user only gets a error page if the option is not enabled --- htroot/yacysearchitem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java index 41980c540..fb6d0ec23 100644 --- a/htroot/yacysearchitem.java +++ b/htroot/yacysearchitem.java @@ -207,7 +207,7 @@ public class yacysearchitem { prop.put("content_showCitation", sb.getConfigBool("search.result.show.citation", true) ? 1 : 0); prop.put("content_showPictures", sb.getConfigBool("search.result.show.pictures", true) ? 1 : 0); prop.put("content_showCache", sb.getConfigBool("search.result.show.cache", true) && Cache.has(resultURL.hash()) ? 1 : 0); - prop.put("content_showProxy", sb.getConfigBool("search.result.show.proxy", true) ? 1 : 0); + prop.put("content_showProxy", sb.getConfigBool("search.result.show.proxy", true) && sb.getConfigBool("proxyURL", false) ? 1 : 0); prop.put("content_showHostBrowser", sb.getConfigBool("search.result.show.hostbrowser", true) ? 1 : 0); prop.put("content_showVocabulary", sb.getConfigBool("search.result.show.vocabulary", true) ? 1 : 0);