mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-36359 Typo prevents 'Cancel' action in 'Add instance' to work as expected
This commit is contained in:
parent
6109f2112c
commit
7a65e286ca
4
cache/admin.php
vendored
4
cache/admin.php
vendored
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user