From a7523f99c139054bca33eeebfca57368c30bb305 Mon Sep 17 00:00:00 2001
From: Kevin Abel <kabel2@unl.edu>
Date: Fri, 19 Aug 2011 13:27:33 +0000
Subject: [PATCH] Reverting r87 as the Google API bug has been addressed and
 rolled out. @see
 http://www.google.com/support/forum/p/customsearch/thread?tid=3a08ffc4ad03d4c7&hl=en

---
 www/searchFunc.js | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/www/searchFunc.js b/www/searchFunc.js
index dca5418..7b6efd4 100644
--- a/www/searchFunc.js
+++ b/www/searchFunc.js
@@ -33,11 +33,6 @@ function searchInit() {
 
 	if (UNL_Search.do_local_search) {
 		var local_search = new google.search.CustomSearchControl(UNL_Search.local_search_context);
-		// WARNING: The following code is an undocumented method of the Google API
-		// and appears to be on the deprication list, but it fixes a MAJOR bug in
-		// that prevents the use of linked CSE's
-		local_search.getWebSearcher().setSiteRestriction(UNL_Search.local_search_context);
-		// end hack
 		local_search.setResultSetSize('small');
 		local_search.setSearchCompleteCallback(UNL_Search, UNL_Search.onSearchComplete);
 		local_search.draw('local_results', drawOp);
-- 
GitLab