Browse files

MDL-36359 Typo prevents 'Cancel' action in 'Add instance' to work as …

…expected
  • Loading branch information...
1 parent 6109f21 commit 7a65e286caeb846574c0003a6358a20165cd0076 @scara scara committed Nov 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 cache/admin.php
View
4 cache/admin.php
@@ -60,7 +60,7 @@
$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 @@
$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();

0 comments on commit 7a65e28

Please sign in to comment.