Preventing missing langvars from causing problems.

This commit is contained in:
Chris 2011-09-19 11:42:45 +01:00
parent 087fe9a13a
commit 9f42704254

View File

@ -206,6 +206,8 @@ sub replace_langvar {
# Make the default value be the variable name in red to hilight problems # Make the default value be the variable name in red to hilight problems
$default = "<span style=\"color: red\">$varname</span>"; $default = "<span style=\"color: red\">$varname</span>";
} elsif(!defined($default)) {
$default = "<span style=\"color: red\">$varname</span>";
} }
# strip the leadin L_ if present # strip the leadin L_ if present