]> git.plutz.net Git - shellwiki/blobdiff - handlers/20_title.sh
prevent spamming error log
[shellwiki] / handlers / 20_title.sh
index 4288b31de21ed086a726c4d54781d11d0500e2fc..a7c98a5de47ca93fe61ec243ab9f3a4193618b7f 100755 (executable)
@@ -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