From: Felix Fietkau Date: Fri, 29 Sep 2006 19:39:07 +0000 (+0000) Subject: fix language dropdown menu if only one language is installed X-Git-Tag: whiterussian_rc6~127 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c27e799ed3f7698ede73f6f00a59697f11e63211;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix language dropdown menu if only one language is installed SVN-Revision: 4877 --- 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"