mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
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']
This commit is contained in:
parent
be0105b33e
commit
44c3ac5e20
@ -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…
Reference in New Issue
Block a user