You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-01-12 22:51:27 +03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user