Merge branch 'm24_MDL-36359_Typo_admin_rediect' of https://github.com/scara/moodle
This commit is contained in:
Vendored
+2
-2
@@ -60,7 +60,7 @@ if (!empty($action) && confirm_sesskey()) {
|
||||
$mform = cache_administration_helper::get_add_store_form($plugin);
|
||||
$title = get_string('addstore', 'cache', $plugins[$plugin]['name']);
|
||||
if ($mform->is_cancelled()) {
|
||||
rediect($PAGE->url);
|
||||
redirect($PAGE->url);
|
||||
} else if ($data = $mform->get_data()) {
|
||||
$config = cache_administration_helper::get_store_configuration_from_data($data);
|
||||
$writer = cache_config_writer::instance();
|
||||
@@ -80,7 +80,7 @@ if (!empty($action) && confirm_sesskey()) {
|
||||
$mform = cache_administration_helper::get_edit_store_form($plugin, $store);
|
||||
$title = get_string('addstore', 'cache', $plugins[$plugin]['name']);
|
||||
if ($mform->is_cancelled()) {
|
||||
rediect($PAGE->url);
|
||||
redirect($PAGE->url);
|
||||
} else if ($data = $mform->get_data()) {
|
||||
$config = cache_administration_helper::get_store_configuration_from_data($data);
|
||||
$writer = cache_config_writer::instance();
|
||||
|
||||
Reference in New Issue
Block a user