make number of polygon outputs allowed a constant

This commit is contained in:
Brian Quinion
2012-11-06 13:10:25 +00:00
parent f942f7c3bf
commit 9d8ee88591
2 changed files with 9 additions and 2 deletions

View File

@@ -41,8 +41,12 @@
+ ($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;
}