Skip to content
Permalink
Browse files

BRACE replace

Replace the strings RBRACE and LBRACE with the relevant curly braces in the gm3 region callback response so that the json is actually valid
  • Loading branch information...
alycejenni committed Sep 12, 2019
1 parent 28711ec commit b74f709d5b9de7604505c5b5aa6f1ac389e0fb83
Showing with 2 additions and 0 deletions.
  1. +2 −0 sites/all/modules/custom/gm3/gm3_region/gm3_region.callback.inc
@@ -158,6 +158,8 @@ function gm3_region_get_points($region_ids){
}else{
$polygons = $polygons->data;
}
$polygons = str_replace('LBRACE', '{', $polygons);
$polygons = str_replace('RBRACE', '}', $polygons);
print $polygons;
}
print "]";

0 comments on commit b74f709

Please sign in to comment.
You can’t perform that action at this time.