diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_templating.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_templating.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_templating.c b/src/backend/taler-merchant-httpd_templating.c index 50868adb..1b480a67 100644 --- a/src/backend/taler-merchant-httpd_templating.c +++ b/src/backend/taler-merchant-httpd_templating.c @@ -20,6 +20,7 @@ */ #include "platform.h" #include <gnunet/gnunet_util_lib.h> +#include <taler/taler_util.h> #include <taler/taler_mhd_lib.h> #include "taler-merchant-httpd_templating.h" #include "../mustach/mustach.h" @@ -196,10 +197,10 @@ lookup_template (struct MHD_Connection *connection, name)) continue; /* does not match by name */ if ( (NULL == best) || - (TALER_MHD_language_matches (lang, - loaded[i].lang) > - TALER_MHD_language_matches (lang, - best->lang) ) ) + (TALER_language_matches (lang, + loaded[i].lang) > + TALER_language_matches (lang, + best->lang) ) ) best = &loaded[i]; } if (NULL == best) @@ -469,7 +470,7 @@ TMH_templating_init () * Nicely shut down. */ void __attribute__ ((destructor)) -get_orders_fini () +templating_fini () { for (unsigned int i = 0; i<loaded_length; i++) { |