]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/search-html.php
show class instead of yes in html search output
[nominatim.git] / lib / template / search-html.php
index b270e02fb9a2bfdb8fd5dcd2f01126fd91283d87..02c8cb4d0ed228e7ee3bf680ec4b675394c65bf8 100644 (file)
@@ -204,6 +204,8 @@ target="_blank">FAQ</a></td>
                echo ' <span class="place_id">'.$aResult['place_id'].'</span>';
                if (isset($aResult['label']))
                        echo ' <span class="type">('.$aResult['label'].')</span>';
+               else if ($aResult['type'] == 'yes')
+                       echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['class'])).')</span>';
                else
                        echo ' <span class="type">('.ucwords(str_replace('_',' ',$aResult['type'])).')</span>';
                echo ' <span class="details">(<a href="details.php?place_id='.$aResult['place_id'].'">details</a>)</span>';