MDL-39312 Cache lock plugins - fix undefined var and language typo

This commit is contained in:
Damyon Wiese 2013-05-01 10:51:32 +08:00
parent a6b274b232
commit 25927c42ce
2 changed files with 2 additions and 2 deletions

2
cache/locallib.php vendored
View File

@ -936,7 +936,7 @@ abstract class cache_administration_helper extends cache_helper {
$url = new moodle_url('/cache/admin.php', array('action' => 'editstore', 'plugin' => $plugin, 'store' => $store));
$editform = new $class($url, array('plugin' => $plugin, 'store' => $store, 'locks' => $locks));
if (isset($stores[$store]['lock'])) {
$editform->set_data(array('lock' => $lock));
$editform->set_data(array('lock' => $stores[$store]['lock']));
}
// See if the cachestore is going to want to load data for the form.
// If it has a customised add instance form then it is going to want to.

View File

@ -98,7 +98,7 @@ $string['lockingmeans'] = 'Locking mechanism';
$string['lockmethod'] = 'Lock method';
$string['lockmethod_help'] = 'This is the method used for locking when required of this store.';
$string['lockname'] = 'Name';
$string['locknamedesc'] = 'The name must be unique and can on consist of the characters: a-zA-Z_';
$string['locknamedesc'] = 'The name must be unique and can only consist of the characters: a-zA-Z_';
$string['locknamenotunique'] = 'The name you have selected is not unique. Please select a unique name.';
$string['locksummary'] = 'Summary of cache lock instances.';
$string['locktype'] = 'Type';