]> git.openstreetmap.org Git - nominatim.git/commitdiff
Fix typos in function name
authorDaniele Forsi <daniele@forsi.it>
Mon, 9 Jul 2012 17:07:09 +0000 (19:07 +0200)
committerDaniele Forsi <daniele@forsi.it>
Mon, 9 Jul 2012 17:07:09 +0000 (19:07 +0200)
perl -p -e s/getPrefferedLangauges/getPreferredLanguages/ -i */*.php

lib/lib.php
website/details.php
website/reverse.php
website/search.php

index 5d02ef89a1c530a7f3e0b0fa53accdde394963af..c1926bc70437ebde23db4dfba3879e7c67d819cb 100644 (file)
@@ -94,7 +94,7 @@
                return ($a['foundorder'] < $b['foundorder']?-1:1);
        }
 
-       function getPrefferedLangauges()
+       function getPreferredLanguages()
        {
                // If we have been provided the value in $_GET it overrides browser value
                if (isset($_GET['accept-language']) && $_GET['accept-language'])
index ff90cd98ba7dd92a5d9e294c3206dabf649139db..b7a38b2d7cc7c1cea3c000835de8e68b8393475a 100755 (executable)
@@ -33,7 +33,7 @@
        $iParentPlaceID = $oDB->getOne('select parent_place_id from location_property_aux where place_id = '.$iPlaceID);
        if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;
 
-       $aLangPrefOrder = getPrefferedLangauges();
+       $aLangPrefOrder = getPreferredLanguages();
        $sLanguagePrefArraySQL = "ARRAY[".join(',',array_map("getDBQuoted",$aLangPrefOrder))."]";
 
        $hLog = logStart($oDB, 'details', $_SERVER['QUERY_STRING'], $aLangPrefOrder);
index 70779dd714efbe647cbf5d549481e5c16cf78828..2f6166e4e6d82ad50112ab30cd696f791e33cdc4 100755 (executable)
@@ -29,7 +29,7 @@
        if (isset($_GET['addressdetails'])) $bShowAddressDetails = (bool)$_GET['addressdetails'];
 
         // Prefered language
-        $aLangPrefOrder = getPrefferedLangauges();
+        $aLangPrefOrder = getPreferredLanguages();
         $sLanguagePrefArraySQL = "ARRAY[".join(',',array_map("getDBQuoted",$aLangPrefOrder))."]";
 
        $hLog = logStart($oDB, 'reverse', $_SERVER['QUERY_STRING'], $aLangPrefOrder);
index 646eefe6a07fcaff6c0106918e3ee4bed88518a5..a23ed9d7379dc7e333aae1ae3fb4c45e8182dd3c 100755 (executable)
@@ -37,7 +37,7 @@
        $bShowAddressDetails = isset($_GET['addressdetails']) && $_GET['addressdetails'];
 
        // Prefered language    
-       $aLangPrefOrder = getPrefferedLangauges();
+       $aLangPrefOrder = getPreferredLanguages();
        if (isset($aLangPrefOrder['name:de'])) $bReverseInPlan = true;
        if (isset($aLangPrefOrder['name:ru'])) $bReverseInPlan = true;
        if (isset($aLangPrefOrder['name:ja'])) $bReverseInPlan = true;