X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0f87da017f83b321770044e52d7034894448dee6..c3238682a8867edfb3c052ca4d2d27b3926ad17a:/lib/TokenList.php diff --git a/lib/TokenList.php b/lib/TokenList.php index 78fa6444..a419da6a 100644 --- a/lib/TokenList.php +++ b/lib/TokenList.php @@ -2,12 +2,12 @@ namespace Nominatim; -require_once(CONST_BasePath.'/lib/TokenCountry.php'); -require_once(CONST_BasePath.'/lib/TokenHousenumber.php'); -require_once(CONST_BasePath.'/lib/TokenPostcode.php'); -require_once(CONST_BasePath.'/lib/TokenSpecialTerm.php'); -require_once(CONST_BasePath.'/lib/TokenWord.php'); -require_once(CONST_BasePath.'/lib/SpecialSearchOperator.php'); +require_once(CONST_LibDir.'/TokenCountry.php'); +require_once(CONST_LibDir.'/TokenHousenumber.php'); +require_once(CONST_LibDir.'/TokenPostcode.php'); +require_once(CONST_LibDir.'/TokenSpecialTerm.php'); +require_once(CONST_LibDir.'/TokenWord.php'); +require_once(CONST_LibDir.'/SpecialSearchOperator.php'); /** * Saves information about the tokens that appear in a search query. @@ -84,8 +84,8 @@ class TokenList { $ids = array(); - foreach($this->aTokens as $aTokenList) { - foreach($aTokenList as $oToken) { + foreach ($this->aTokens as $aTokenList) { + foreach ($aTokenList as $oToken) { if (is_a($oToken, '\Nominatim\Token\Word') && !$oToken->bPartial) { $ids[$oToken->iId] = $oToken->iId; }