forked from Business/AccountHub
Trigger warning with missing lang strings
This commit is contained in:
parent
b7c15dc15b
commit
81658a47c5
@ -132,6 +132,7 @@ function lang($key, $echo = true) {
|
||||
if (array_key_exists($key, $GLOBALS['STRINGS'])) {
|
||||
$str = $GLOBALS['STRINGS'][$key];
|
||||
} else {
|
||||
trigger_error("Language key \"$key\" does not exist in " . LANGUAGE, E_USER_WARNING);
|
||||
$str = $key;
|
||||
}
|
||||
|
||||
@ -154,6 +155,7 @@ function lang2($key, $replace, $echo = true) {
|
||||
if (array_key_exists($key, $GLOBALS['STRINGS'])) {
|
||||
$str = $GLOBALS['STRINGS'][$key];
|
||||
} else {
|
||||
trigger_error("Language key \"$key\" does not exist in " . LANGUAGE, E_USER_WARNING);
|
||||
$str = $key;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user