]> git.openstreetmap.org Git - nominatim.git/commitdiff
make number of polygon outputs allowed a constant
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Tue, 6 Nov 2012 13:10:25 +0000 (13:10 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Tue, 6 Nov 2012 13:10:25 +0000 (13:10 +0000)
settings/settings.php
website/search.php

index f441521fd8ed7c7f667e8bd522aa7747d45b63b6..a0a884fea587f4f6c320648a85133fae1d8519e7 100644 (file)
@@ -33,6 +33,9 @@
 
        @define('CONST_Suggestions_Enabled', false);
 
+       // Set to zero to disable polygon output
+       @define('CONST_PolygonOutput_MaximumTypes', 1);
+
        // Log settings
        @define('CONST_Log_DB', true);
        @define('CONST_Log_File', false);
index ff82cadd4f66846c47eda076b75324e0707f34a5..69f6a666d0bcdbfcf9f80465d5760325291288bb 100755 (executable)
           + ($bAsKML?1:0) 
           + ($bAsSVG?1:0) 
           + ($bAsTEXT?1:0) 
-               ) > 1) {
-               echo "Select only one polgyon output option";
+               ) > CONST_PolygonOutput_MaximumTypes) {
+               if (CONST_PolygonOutput_MaximumTypes) {
+                       echo "Select only ".CONST_PolygonOutput_MaximumTypes." polgyon output option";
+               } else {
+                       echo "Polygon output is disabled";
+               }
                exit;
        }