diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-05-07 04:43:30 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-05-07 04:43:30 +0200 |
commit | 68e4c6ce2cbcc16f5613a7731d4cfac13e4d3354 (patch) | |
tree | b07274c5478a9058be5eb67e3ba7be293a7c8df5 /src/directives.c | |
parent | 4b676a3e0a21d494a1d47efcaf995537b29ff2b9 (diff) | |
parent | 4230e93c64c78ca4276a164704c8dc8a67e466e1 (diff) | |
download | blogc-68e4c6ce2cbcc16f5613a7731d4cfac13e4d3354.tar.gz blogc-68e4c6ce2cbcc16f5613a7731d4cfac13e4d3354.tar.bz2 blogc-68e4c6ce2cbcc16f5613a7731d4cfac13e4d3354.zip |
Merge branch 'master' into feature/directives
Diffstat (limited to 'src/directives.c')
-rw-r--r-- | src/directives.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/directives.c b/src/directives.c index b538825..eb6166b 100644 --- a/src/directives.c +++ b/src/directives.c @@ -12,9 +12,9 @@ #include <string.h> -#include "utils/utils.h" #include "directives.h" #include "error.h" +#include "utils.h" const static blogc_directive_t registry[] = { @@ -48,11 +48,11 @@ blogc_directive_youtube(blogc_directive_ctx_t *ctx, blogc_error_t **err) return NULL; } - char *width = b_trie_lookup(ctx->params, "width"); - char *height = b_trie_lookup(ctx->params, "height"); + char *width = sb_trie_lookup(ctx->params, "width"); + char *height = sb_trie_lookup(ctx->params, "height"); // using default 16:9 sizes provided by youtube as of 2015-11-04 - return b_strdup_printf( + return sb_strdup_printf( "<iframe width=\"%s\" height=\"%s\" " "src=\"https://www.youtube.com/embed/%s\" frameborder=\"0\" " "allowfullscreen></iframe>%s", |