Skip to content
Permalink
Browse files

must parse ruleset before tileset

  • Loading branch information
tomhel committed May 9, 2016
1 parent 9ae5433 commit 43c37325c27069fd5d82ffb1c123f48219417005
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/configuration_xml.c
@@ -1141,13 +1141,13 @@ void mapcache_configuration_parse_xml(mapcache_context *ctx, const char *filenam
if(GC_HAS_ERROR(ctx)) goto cleanup;
}

for(node = ezxml_child(doc,"tileset"); node; node = node->next) {
parseTileset(ctx, node, config);
for(node = ezxml_child(doc,"ruleset"); node; node = node->next) {
parseRuleset(ctx, node, config);
if(GC_HAS_ERROR(ctx)) goto cleanup;
}

for(node = ezxml_child(doc,"ruleset"); node; node = node->next) {
parseRuleset(ctx, node, config);
for(node = ezxml_child(doc,"tileset"); node; node = node->next) {
parseTileset(ctx, node, config);
if(GC_HAS_ERROR(ctx)) goto cleanup;
}

0 comments on commit 43c3732

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