From 81dd294f062f3bee5141a06ccbdd0ae7c73b2eb7 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 23 Apr 2013 15:28:19 +0800 Subject: [PATCH] MDL-38851 Admin: Fixed setType notice for cache --- cache/forms.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cache/forms.php b/cache/forms.php index 9708a016657..785c28ff4cc 100644 --- a/cache/forms.php +++ b/cache/forms.php @@ -57,19 +57,20 @@ class cachestore_addinstance_form extends moodleform { $form->addElement('text', 'name', get_string('storename', 'cache')); $form->addHelpButton('name', 'storename', 'cache'); $form->addRule('name', get_string('required'), 'required'); - $form->setType('name', PARAM_TEXT); + $form->setType('name', PARAM_NOTAGS); } else { $form->addElement('hidden', 'name', $store); $form->addElement('static', 'name-value', get_string('storename', 'cache'), $store); - $form->setType('name', PARAM_TEXT); + $form->setType('name', PARAM_NOTAGS); } if (is_array($locks)) { $form->addElement('select', 'lock', get_string('lockmethod', 'cache'), $locks); $form->addHelpButton('lock', 'lockmethod', 'cache'); - $form->setType('lock', PARAM_TEXT); + $form->setType('lock', PARAM_PLUGIN); } else { $form->addElement('hidden', 'lock', ''); + $form->setType('lock', PARAM_PLUGIN); $form->addElement('static', 'lock-value', get_string('lockmethod', 'cache'), ''.get_string('nativelocking', 'cache').''); }