From 5413abfb1e9f24fcd44ba22dedac7dde589d3f71 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Fri, 7 Jun 2013 16:23:37 +0100 Subject: [PATCH] remove the structuredAddressElement function from search that was moved to lib.php --- website/search.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/website/search.php b/website/search.php index dc6b01e4..3eb50aa2 100755 --- a/website/search.php +++ b/website/search.php @@ -138,20 +138,6 @@ $sQuery = join(', ',$aPhrases); } - function structuredAddressElement(&$aStructuredQuery, &$iMinAddressRank, &$iMaxAddressRank, $aParams, $sKey, $iNewMinAddressRank, $iNewMaxAddressRank) - { - if (!isset($_GET[$sKey])) return false; - $sValue = trim($_GET[$sKey]); - if (!$sValue) return false; - $aStructuredQuery[$sKey] = $sValue; - if ($iMinAddressRank == 0 && $iMaxAddressRank == 30) - { - $iMinAddressRank = $iNewMinAddressRank; - $iMaxAddressRank = $iNewMaxAddressRank; - } - return true; - } - // Structured query? $aStructuredOptions = array( array('amenity', 26, 30), -- 2.39.5