From a2c2b48117aae8b000784dab566a97de1547e82d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Sep 2006 19:39:07 +0000 Subject: [PATCH] fix language dropdown menu if only one language is installed SVN-Revision: 4877 --- openwrt/package/webif/files/www/cgi-bin/webif/system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/package/webif/files/www/cgi-bin/webif/system.sh b/openwrt/package/webif/files/www/cgi-bin/webif/system.sh index be0c2a6f1c..e21f8d7ecc 100755 --- a/openwrt/package/webif/files/www/cgi-bin/webif/system.sh +++ b/openwrt/package/webif/files/www/cgi-bin/webif/system.sh @@ -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<>" '' "$SCRIPT_NAME" -- 2.30.2