MDL-36115 cache: Fixed up requirements check in cache admin interfaces

This commit is contained in:
Sam Hemelryk
2012-10-19 08:12:32 +08:00
parent 7e8ae12a7a
commit 7e7e108f93
3 changed files with 6 additions and 2 deletions
+3
View File
@@ -54,6 +54,9 @@ if (!empty($action) && confirm_sesskey()) {
break;
case 'addstore' : // Add the requested store.
$plugin = required_param('plugin', PARAM_PLUGIN);
if (!$plugins[$plugin]['canaddinstance']) {
print_error('ex_unmetstorerequirements', 'cache');
}
$mform = cache_administration_helper::get_add_store_form($plugin);
$title = get_string('addstore', 'cache', $plugins[$plugin]['name']);
if ($mform->is_cancelled()) {