From 9a90a0dc9d5e1c10f34daad5d296a0373e7a9a51 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 15 Mar 2019 12:44:53 -0400 Subject: _ob_try_load_messages(): Abort on missing argument --- (limited to 'lib') diff --git a/lib/locale.sh b/lib/locale.sh index 12f7685..7b69873 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -36,10 +36,10 @@ ob_get_text_domain() _ob_try_load_messages() { - local locale= + local locale="${1}" + shift 1 || _ob_abort local ms= - locale="${1}" ms="$(printf "${_OB_LOCALE_PATH}" \ "${locale}" "${_ob_text_domain}")" -- cgit v0.9.1