MDL-25290 cache: renaming to better separate store plugins from lock plugins

This commit is contained in:
Sam Hemelryk
2012-10-08 09:53:52 +13:00
parent 42f2c59eb8
commit 26ce56fddf
6 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class cachestore_addinstance_form extends moodleform {
if (!preg_match('#^[a-zA-Z0-9\-_ ]+$#', $data['name'])) {
$errors['name'] = get_string('storenameinvalid', 'cache');
} else if (empty($this->_customdata['store'])) {
$stores = cache_administration_helper::get_store_summaries();
$stores = cache_administration_helper::get_store_instance_summaries();
if (array_key_exists($data['name'], $stores)) {
$errors['name'] = get_string('storenamealreadyused', 'cache');
}