slitaz-dev-tools rev 255

tazwikiss: $HTTP_ACCEPT_LANGUAGE is not set by tazweb
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 25 16:08:06 2016 +0200 (2016-05-25)
parents 7259986fee41
children 39a1656c8f04
files tazwikiss/rootfs/var/www/wiki/index.sh
line diff
     1.1 --- a/tazwikiss/rootfs/var/www/wiki/index.sh	Wed May 25 09:54:30 2016 +0200
     1.2 +++ b/tazwikiss/rootfs/var/www/wiki/index.sh	Wed May 25 16:08:06 2016 +0200
     1.3 @@ -9,6 +9,7 @@
     1.4  
     1.5  cd $(dirname $0)
     1.6  CONFIG=config-${HTTP_ACCEPT_LANGUAGE%%[,;_-]*}.sh
     1.7 +[ "$HTTP_ACCEPT_LANGUAGE" ] || CONFIG=config-${lang%%[,;_-]*}.sh
     1.8  [ -x "$CONFIG" ] || CONFIG=config.sh
     1.9  . ./$CONFIG
    1.10