"REPOSITORY/MDL-17466, display which plugin is valid"

This commit is contained in:
dongsheng
2009-04-01 05:40:37 +00:00
parent edc0c49332
commit 3a90e17e41
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -135,9 +135,9 @@ if (!empty($edit) || !empty($new)) {
print_error('confirmsesskeybad', '', $baseurl);
}
$repositorytype = repository::get_type_by_typename($hide);
$repositorytype = '';
if (empty($repositorytype)) {
print_error('invalidplugin', 'repository');
print_error('invalidplugin', 'repository', '', $hide);
}
$repositorytype->switch_and_update_visibility();
$return = true;