Commit 48046c72 authored by Nigel McNie's avatar Nigel McNie
Browse files

Make pieforms handle the case where a language string is asked for in a...

Make pieforms handle the case where a language string is asked for in a language we don't have a string for more gracefully.
parent c30b06b0
......@@ -1252,7 +1252,10 @@ EOF;
$function = 'pieform_' . $plugin . '_' . $pluginname . '_i18n';
if (function_exists($function)) {
$strings = $function();
return $strings[$this->data['language']][$key];
if (isset($strings[$this->data['language']][$key])) {
return $strings[$this->data['language']][$key];
}
return '[[' . $key . '/' . $this->data['language'] . ']]';
}
// We don't recognise this string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment