tazbug rev 148
Some message my mot be sourced: show bug
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Feb 23 01:27:10 2017 +0100 (2017-02-23) |
parents | 2b7f0070810d |
children | 6db228036db5 |
files | web/bugs.cgi |
line diff
1.1 --- a/web/bugs.cgi Thu Feb 23 00:51:16 2017 +0100 1.2 +++ b/web/bugs.cgi Thu Feb 23 01:27:10 2017 +0100 1.3 @@ -288,7 +288,7 @@ 1.4 cat << EOT 1.5 <a href="?user=$USER">$(get_gravatar "$MAIL" 24)</a> \ 1.6 <a href="?id=$id">Bug $id</a>: <span class="date">$DATE</span> \ 1.7 -$USER: <a href="?id=$id#msg${msgid}">${resume}...</a> 1.8 +<a href="?id=$id#msg${msgid}">${resume}...</a> 1.9 EOT 1.10 unset CREATOR USER MAIL 1.11 } 1.12 @@ -359,7 +359,16 @@ 1.13 [ "$msgs" == "0" ] && gettext "No messages" 1.14 for msg in $(ls -1tr $bugdir/$id/msg.*) 1.15 do 1.16 - . $msg 1.17 + # 1.18 + # MSG="`tazlocale` should do the work..." make msg.N unsoursable 1.19 + # Move to text file fo msg content, ex: msg.1.conf msg.1.txt 1.20 + # 1.21 + if ! . ${msg}; then 1.22 + echo "<pre>" 1.23 + echo "<span class='error'>ERROR: sourcing $(basename $msg)</span>" 1.24 + cat ${msg} 1.25 + echo "</pre>" 1.26 + fi 1.27 if [ "$MSG" ]; then 1.28 msgid=$(echo $msg | cut -d "." -f 2) 1.29 del="" 1.30 @@ -373,6 +382,9 @@ 1.31 $(echo "$MSG" | wiki_parser) 1.32 </pre> 1.33 EOT 1.34 +# 1.35 +# BUG: $(echo "$MSG" | wiki_parser) 1.36 +# 1.37 fi 1.38 unset USER DATE MSG 1.39 done