Skip to content

Commit f042c65

Browse files
committed
handle MapServer 8+ config requirement
1 parent dd1c1f3 commit f042c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/source_mapserver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct mc_mapobj {
6060
void mapcache_mapserver_connection_constructor(mapcache_context *ctx, void **conn_, void *params) {
6161
mapcache_source_mapserver *src = (mapcache_source_mapserver*) params;
6262
struct mc_mapobj *mcmap = calloc(1,sizeof(struct mc_mapobj));
63-
mcmap->map = msLoadMap(src->mapfile,NULL);
63+
mcmap->map = msLoadMap(src->mapfile,NULL, NULL);
6464
if(!mcmap->map) {
6565
errorObj *errors = NULL;
6666
ctx->set_error(ctx, 500, "Failed to load mapfile '%s'",src->mapfile);
@@ -229,7 +229,7 @@ void _mapcache_source_mapserver_configuration_check(mapcache_context *ctx, mapca
229229
msSetup();
230230

231231
/* do a test load to check the mapfile is correct */
232-
map = msLoadMap(src->mapfile, NULL);
232+
map = msLoadMap(src->mapfile, NULL, NULL);
233233
if(!map) {
234234
msWriteError(stderr);
235235
ctx->set_error(ctx,400,"failed to load mapfile \"%s\"",src->mapfile);

0 commit comments

Comments
 (0)