MDL-45724 cache: fixed warning structure bug

This commit is contained in:
Sam Hemelryk
2014-07-23 15:24:59 +12:00
parent 919dc292b9
commit ed2de2ecc7
3 changed files with 7 additions and 7 deletions
+5 -1
View File
@@ -280,7 +280,11 @@ if (!empty($action) && confirm_sesskey()) {
}
}
$notifications = array_merge($notifications, cache_helper::warnings($stores));
// Add cache store warnings to the list of notifications.
// Obviously as these are warnings they are show as failures.
foreach (cache_helper::warnings($stores) as $warning) {
$notifications[] = array($warning, false);
}
$PAGE->set_title($title);
$PAGE->set_heading($SITE->fullname);