slitaz-dev-tools rev 256
tazwikiss: $HTTP_ACCEPT_LANGUAGE is not set by tazweb (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 16:35:30 2016 +0200 (2016-05-25) |
parents | 81bd63f2a1a1 |
children | 8eb22c61c87b |
files | tazwikiss/rootfs/var/www/wiki/plugins/wkp_Admin.sh |
line diff
1.1 --- a/tazwikiss/rootfs/var/www/wiki/plugins/wkp_Admin.sh Wed May 25 16:08:06 2016 +0200 1.2 +++ b/tazwikiss/rootfs/var/www/wiki/plugins/wkp_Admin.sh Wed May 25 16:35:30 2016 +0200 1.3 @@ -41,7 +41,6 @@ 1.4 esac 1.5 PAGE_TITLE_link=false 1.6 editable=false 1.7 - lang="${HTTP_ACCEPT_LANGUAGE%%[,;_-]*}" 1.8 PAGE_TITLE="Administration" 1.9 curpass="$(POST curpass)" 1.10 secret="admin.secret" 1.11 @@ -91,11 +90,11 @@ 1.12 eval $(grep ^plugin= $i) 1.13 [ -n "$plugin" ] || continue 1.14 eval $(grep ^description= $i) 1.15 - alt="$(grep ^description_$lang= $i)" 1.16 + alt="$(grep ^description_$LANG= $i)" 1.17 [ -n "$alt" ] && eval $(echo "$alt" | sed 's/_..=/=/') 1.18 help= 1.19 eval $(grep ^help= $i) 1.20 - alt="$(grep ^help_$lang= $i)" 1.21 + alt="$(grep ^help_$LANG= $i)" 1.22 [ -n "$alt" ] && eval $(echo "$alt" | sed 's/_..=/=/') 1.23 name="$(basename $i .sh)" 1.24 [ -n "$help" ] && description=" <a href='?page=$help' title='$plugin help page'>$description</a>"