Commit 6d8bbfcc authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review

Merge "Finding all the install.xml files for making the database reset in behat"

parents 2026603c 81835d27
......@@ -1458,7 +1458,12 @@ function get_tables_from_xmldb() {
foreach (array_reverse(plugin_types_installed()) as $t) {
if ($installed = plugins_installed($t, true)) {
foreach ($installed as $p) {
$location = get_config('docroot') . $t . '/' . $p->name. '/db/';
if (!empty($p->artefactplugin)) {
$location = get_config('docroot') . 'artefact/' . $p->artefactplugin . '/' . $t . '/' . $p->name . '/db/';
}
else {
$location = get_config('docroot') . $t . '/' . $p->name. '/db/';
}
if (is_readable($location . 'install.xml')) {
$tables = array_merge($tables, get_tables_from_xmldb_file($location . 'install.xml'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment