mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-29768 Language : fixed installation undefined debugstringids notice
This commit is contained in:
parent
f856216cb1
commit
77c3e9d0c6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user