Commit 836f2f04 authored by Paul Holden's avatar Paul Holden
Browse files

MDL-72908 admin: correctly distinguish purging all/selected caches.

parent c69c33b1
......@@ -38,12 +38,11 @@ $form = new core_admin\form\purge_caches(null, ['returnurl' => $returnurl]);
if ($data = $form->get_data()) {
// Valid request. Purge, and redirect the user back to where they came from.
$selected = $data->purgeselectedoptions;
if (isset($data->all)) {
$message = get_string('purgecachesfinished', 'admin');
} else {
$message = get_string('purgeselectedcachesfinished', 'admin');
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment