fix language dropdown menu if only one language is installed
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Sep 2006 19:39:07 +0000 (19:39 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Sep 2006 19:39:07 +0000 (19:39 +0000)
SVN-Revision: 4877

openwrt/package/webif/files/www/cgi-bin/webif/system.sh

index be0c2a6f1cd70ac596d27461bbb53e8b61e6b89f..e21f8d7eccb2b45aabc6010fbfd82f97c14a6a75 100755 (executable)
@@ -30,7 +30,7 @@ EOF
        }
 fi
 
-LANGUAGES="$(grep '^[\t ]*lang[\t ]*=>' /usr/lib/webif/lang/*/*.txt 2>/dev/null | awk -f /usr/lib/webif/languages.awk)"
+LANGUAGES="$(grep -H '^[\t ]*lang[\t ]*=>' /usr/lib/webif/lang/*/*.txt 2>/dev/null | awk -f /usr/lib/webif/languages.awk)"
 
 header "System" "Settings" "@TR<<System Settings>>" '' "$SCRIPT_NAME"