mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-55143' of https://github.com/mr-russ/moodle
This commit is contained in:
commit
d5e902d3ab
@ -186,7 +186,7 @@ abstract class testing_util {
|
||||
* @return bool
|
||||
*/
|
||||
public static function is_test_data_updated() {
|
||||
global $CFG;
|
||||
global $DB;
|
||||
|
||||
$framework = self::get_framework();
|
||||
|
||||
@ -206,7 +206,8 @@ abstract class testing_util {
|
||||
return false;
|
||||
}
|
||||
|
||||
$dbhash = get_config('core', $framework . 'test');
|
||||
// A direct database request must be used to avoid any possible caching of an older value.
|
||||
$dbhash = $DB->get_field('config', 'value', array('name' => $framework . 'test'));
|
||||
if ($hash !== $dbhash) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user