"REPOSITORY/MDL-17466, display which plugin is valid"
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user