Commit ae3d91c2 authored by Penny Leach's avatar Penny Leach
Browse files

added some todos in the installer/upgrader to remind me about plugins

later or someone else can look while I'm away
parent cb7907ae
......@@ -150,10 +150,15 @@ function upgrade_plugin($upgrade) {
$location = get_config('dirroot') . $plugintype . '/' . $pluginname . '/db/';
if (!empty($upgrade->install)) {
// @todo check file exists first - reasonable for it not to have
// db tables at all. should still insert version number and cron etc
// @todo add to installed_artefacts
$status = install_from_xmldb_file($location . 'install.xml');
}
else {
require_once($location . 'upgrade.php');
// @todo check file exists first - reasonable for it not to have
// db tables at all. should still insert version number and cron etc
$function = 'xmldb_' . $plugintype . '_' . $pluginname . '_upgrade';
$status = $function($upgrade->from);
}
......
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