X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.sh;h=0439f0d642421244c6049fa2ef9896389a5e21a5;hb=713a39f5e2b8f99d824273d49e64edb977333f69;hp=e8b5f2f62802d53bfddc51f3e0dbc215a12a2df7;hpb=8a93d4ef20815df18bfc1a580d3cffb8c6a31ea2;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index e8b5f2f..0439f0d 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -5,9 +5,9 @@ theme_head(){ local IFS="$BR" printf ' - + ' - for css in "$_BASE/[.]/cgilite/common.css" "$_BASE/[.]/themes/default.css" $PAGE_CSS; do + for css in "$_BASE/%5B.%5D/cgilite/common.css" "$_BASE/%5B.%5D/themes/default.css" $PAGE_CSS; do printf '' \ "$(HTML "${css##*//}")" done @@ -27,13 +27,13 @@ theme_pagemenu(){ if acl_write "$page"; then printf ' ' fi } @@ -47,7 +47,7 @@ theme_page(){ cat <<-EOF - + $(theme_head) ${title} @@ -171,7 +171,7 @@ theme_error(){ 500) printf "%s\r\n" "Status: 500 Internal Server Error";; esac - if [ "$(mdfile "/[wiki]/$errno/")" ]; then + if mdfile "/[wiki]/$errno/" >&-; then theme_page "/[wiki]/$errno/" else printf "Content-Length: 0\r\n\r\n"