X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=handlers%2F20_title.sh;h=a7c98a5de47ca93fe61ec243ab9f3a4193618b7f;hb=696420310ff6a3ac680935ef50985f0d37c61ad9;hp=4288b31de21ed086a726c4d54781d11d0500e2fc;hpb=1addbd404bc8cd6f869e9e1df19cc83081fa7bc2;p=shellwiki diff --git a/handlers/20_title.sh b/handlers/20_title.sh index 4288b31..a7c98a5 100755 --- a/handlers/20_title.sh +++ b/handlers/20_title.sh @@ -1,6 +1,6 @@ #!/bin/sh -if acl_read ${PATH_INFO%/*}; then +if acl_read ${PATH_INFO}; then mdfile="$(mdfile "${PATH_INFO%/*}")" else PAGE_TITLE="${SITE_TITLE}" @@ -29,10 +29,10 @@ fi case $PATH_INFO in *"/[attachment]") - PAGE_TITLE="${PAGE_TITLE} (Attachments)" + PAGE_TITLE="${PAGE_TITLE} ($(_ Attachments))" ;; *"/[revision]") - PAGE_TITLE="${PAGE_TITLE} (Revisions)" + PAGE_TITLE="${PAGE_TITLE} ($(_ Revisions))" ;; esac