]> granicus.if.org Git - ejabberd/commitdiff
Allow contribution to include .yml or .yaml config file
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 24 Jul 2015 12:30:31 +0000 (14:30 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 24 Jul 2015 12:30:31 +0000 (14:30 +0200)
src/ejabberd_config.erl

index 81a87a648d85cef11a7c863d9ad874746d14cb24..18abf40ce9e372f70d978a9efca9a96d17e4d046 100644 (file)
@@ -206,7 +206,7 @@ get_plain_terms_file(File1, Opts) ->
             BinTerms1 = strings_to_binary(Terms),
             ModInc = case proplists:get_bool(include_modules_configs, Opts) of
                          true ->
-                             filelib:wildcard(ext_mod:modules_dir() ++ "/*/conf/*.yaml");
+                             filelib:wildcard(ext_mod:modules_dir() ++ "/*/conf/*.{yml,yaml}");
                          _ ->
                              []
                      end,