]> git.plutz.net Git - shellwiki/blobdiff - attachment.sh
attachment processing, serving and overview
[shellwiki] / attachment.sh
index 68e03b9b7ab9435961ca41abbaa93e2667aced7d..b5e8491298ed398a3e7e733d37ef109c74b10405 100755 (executable)
@@ -60,7 +60,10 @@ attachment_convert(){
   esac
 }
 
-if [ "${PATH_INFO%/\[attachment\]/*}" != "${PATH_INFO}" ]; then
+if [ "${PATH_INFO%/\[attachment\]/}"  != "${PATH_INFO}" ]; then
+  theme_attachments "${PATH_INFO%\[attachment\]/}"
+
+elif [ "${PATH_INFO%/\[attachment\]/*}" != "${PATH_INFO}" ]; then
   attpath="${PATH_INFO%/\[attachment\]/*}/#attachments/${PATH_INFO##*/}"
   if [ -f "$_DATA/pages/$attpath" ]; then
     FILE "$_DATA/pages/$attpath"