MDL-29768 Language : fixed installation undefined debugstringids notice

This commit is contained in:
Aparup Banerjee 2011-10-18 11:19:43 +08:00
parent f856216cb1
commit 77c3e9d0c6

View File

@ -6734,7 +6734,7 @@ function get_string($identifier, $component = '', $a = NULL) {
$result = get_string_manager()->get_string($identifier, $component, $a);
// Debugging feature lets you display string identifier and component
if ($CFG->debugstringids && optional_param('strings', 0, PARAM_INT)) {
if (isset($CFG->debugstringids) && $CFG->debugstringids && optional_param('strings', 0, PARAM_INT)) {
$result .= ' {' . $identifier . '/' . $component . '}';
}
return $result;