From 3ace65858ebce3af6b1795a4417095626c037aa7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 13 Jun 2026 09:38:37 +0300 Subject: jm0: centralize runtime config defaults --- src/lib/template.source.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lib/template.source.sh') diff --git a/src/lib/template.source.sh b/src/lib/template.source.sh index c7d9ded..f24244b 100644 --- a/src/lib/template.source.sh +++ b/src/lib/template.source.sh @@ -427,19 +427,19 @@ prepare_template_render_vars() { config_html) case "$source_name" in HEIGHT) - context_value="${HEIGHT:-}" + context_value="$HEIGHT" ;; MAXPREVIEWS) - context_value="${MAXPREVIEWS:-}" + context_value="$MAXPREVIEWS" ;; ORIGINAL_BASEPATH) - context_value="${ORIGINAL_BASEPATH:-}" + context_value="$ORIGINAL_BASEPATH" ;; THUMBHEIGHT) - context_value="${THUMBHEIGHT:-}" + context_value="$THUMBHEIGHT" ;; TITLE) - context_value="${TITLE:-}" + context_value="$TITLE" ;; *) config_error \ @@ -450,7 +450,7 @@ prepare_template_render_vars() { html_escape_to render_value "$context_value" ;; original_basepath_is_set) - if [ -n "${ORIGINAL_BASEPATH:-}" ]; then + if [ -n "$ORIGINAL_BASEPATH" ]; then render_value='yes' else render_value='no' @@ -475,7 +475,7 @@ prepare_template_render_vars() { fi ;; tarball_include) - render_value="${TARBALL_INCLUDE:-no}" + render_value="$TARBALL_INCLUDE" ;; *) config_error "unknown template render field kind $kind" -- cgit v1.2.3