language-update.sh: silence warning about undefined $CONF variable

This warning was for example

PHP Notice:  Undefined variable: CONF in .../languages/en.lang on line 184

and is caused by some texts that include $CONF['admin_name']
pull/343/merge
Christian Boltz 5 years ago
parent be0105b33e
commit 44c3ac5e20
No known key found for this signature in database
GPG Key ID: C6A682EA63C82F1C

@ -21,7 +21,7 @@
function update_string_list() {
for file in en.lang $filelist ; do
echo "<?php include('$file'); print join(\"\\n\", array_keys(\$PALANG)) . \"\\n\"; ?>" | php > $file.strings
echo "<?php \$CONF['admin_name'] = ''; include('$file'); print join(\"\\n\", array_keys(\$PALANG)) . \"\\n\"; ?>" | php > $file.strings
done
for file in $filelist ; do

Loading…
Cancel
Save