]> git.plutz.net Git - shellwiki/blob - macros/errormessage
Merge commit 'fb88510e7c955308c1321678f97a8f7d47b92efd'
[shellwiki] / macros / errormessage
1 #!/bin/sh
2
3 . "$_EXEC/cgilite/cgilite.sh"
4
5 _(){ printf %s\\n "$*"; }
6 [ "${LANGUAGE}" -a -r "${_EXEC}/l10n/${LANGUAGE}.sh" ] && . "${_EXEC}/l10n/${LANGUAGE}.sh"
7
8 if [ "$1" -o "$ERROR_MSG" ]; then
9   printf '<p class="error">%s</p>' "$(HTML "$(_ ${1:-${ERROR_MSG}})")"
10 fi