MDL-19349 upgrade_plugin_savepoint() added 2 suggestions

This commit is contained in:
stronk7 2009-05-30 18:51:47 +00:00
parent c31d94e8ba
commit ba04999ceb

View file

@ -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;
} }
} }