]> git.plutz.net Git - shellwiki/blobdiff - themes/default.sh
bugfix: prevent test errors from bleeding into http headers
[shellwiki] / themes / default.sh
index de357871bd49695f9a2b01efc81c1f12178b2628..3c5a87fcb57a1ce56a0f4061070a1f8ab4e9bc2e 100755 (executable)
@@ -122,7 +122,7 @@ theme_attachments(){
   title="${page%/}"; title="${title##*/}"
 
   if acl_write "$page"; then
-    theme_page - "Attachments: $title" <<-EOF
+    theme_page - "$(_ Attachments): $title" <<-EOF
        <form class=upload method=POST enctype="multipart/form-data">
          <h2>$(_ Upload)</h2>
          <input type=hidden name=session_id value="$SESSION_ID">
@@ -167,7 +167,7 @@ theme_attachments(){
        </form>
        EOF
   else
-    theme_page - "Attachments: $title" <<-EOF
+    theme_page - "$(_ Attachments): $title" <<-EOF
        <ul class="attachment list">
        $(for file in "$_EXEC/pages/$page/#attachments"/* "$_DATA/pages/$page/#attachments"/*; do
          [ "$file" = "$_EXEC/pages/$page/#attachments/${file##*/}" \