mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
To prevent notices in unusual situations (empty lang files) bug 1404
This commit is contained in:
parent
952b728086
commit
a32c99e288
1 changed files with 1 additions and 0 deletions
|
@ -1767,6 +1767,7 @@ function get_string_from_file($identifier, $langfile, $destination) {
|
||||||
static $strings; // Keep the strings cached in memory.
|
static $strings; // Keep the strings cached in memory.
|
||||||
|
|
||||||
if (empty($strings[$langfile])) {
|
if (empty($strings[$langfile])) {
|
||||||
|
$string = array();
|
||||||
include ($langfile);
|
include ($langfile);
|
||||||
$strings[$langfile] = $string;
|
$strings[$langfile] = $string;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue