mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-19349 upgrade_plugin_savepoint() added 2 suggestions
This commit is contained in:
parent
c31d94e8ba
commit
ba04999ceb
1 changed files with 4 additions and 1 deletions
|
@ -261,6 +261,9 @@ function upgrade_plugin_savepoint($result, $version, $type, $dir, $allowabort=tr
|
||||||
throw new upgrade_exception("$type/$dir", $version);
|
throw new upgrade_exception("$type/$dir", $version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// TODO: Check that $type is a correct type - based on get_plugin_types()
|
||||||
|
/// TODO: Check that $dir (that perhaps should be named $name) is an existing plugin
|
||||||
|
|
||||||
$fullname = $type.'_'.$dir;
|
$fullname = $type.'_'.$dir;
|
||||||
$component = $type.'/'.$dir;
|
$component = $type.'/'.$dir;
|
||||||
|
|
||||||
|
@ -1145,4 +1148,4 @@ function core_tables_exist() {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue