Merge branch 'MDL-67169_36' of https://github.com/stronk7/moodle into MOODLE_36_STABLE

This commit is contained in:
Adrian Greeve
2019-11-08 10:45:30 +08:00
+1 -1
View File
@@ -111,7 +111,7 @@ class core_messageinbound_testcase extends advanced_testcase {
// Break on the --[TOKEN]-- tags in the file.
$content = file_get_contents($file->getRealPath());
$content = preg_replace("#\r\n#", "\n", $content);
$tokens = preg_split('#(?:^|\n*)----([A-Z]+)----\n#', file_get_contents($file->getRealPath()),
$tokens = preg_split('#(?:^|\n*)----([A-Z]+)----\n#', $content,
null, PREG_SPLIT_DELIM_CAPTURE);
$sections = array(
// Key => Required.